Contents
• What is the Windows Command Line ?
• Drives, Directories, Documents
• The CLS Command
• The HELP Command
• Commands for Directories
– CD, DIR, CHDIR, MKDIR, RMDIR, XCOPY
• Commands for Files
– EDIT, DEL, REN, MOVE, COPY Open Command Prompt
• Start
• Programs
• Accessories
• Command Prompt
Documents or Files
• A
document with a .doc, .xls, or .ppt extension – Is a Word, Excel, or Powerpoint document
• A
file with a .exe, or a .dll extension – Is an Executable or a Dynamic Link Library file
• A
file with a .dat extension – Is typically some form of data file
• A
file with a .txt extension – Is typically some form of text file
• A
– Is typically some form of compressed file
• CLS
– Clears the screen The HELP Command
• HELP
– List help for all commands
• HELP [cmd]
– List help for given command Commands for Directories
• CD Change the current drive or directory
• DIR List the current directory
• CHDIR Change the current directory (CD)
• MKDIR Make a new subdirectory (MD)
• RMDIR Remove an old subdirectory (RD)
• XCOPY Copy directories and subdirectories
The CD Command
• [drive:]
– Change the current drive
• CD [path]
– Change the current directory
• CD [..]
– Change to the parent directory The DIR Command
• DIR
– List the current directory
• DIR /B
– List the current directory (bare)
• DIR /W
– List the current directory (wide) The CHDIR Command
• [drive:]
– Change the current drive
• CHDIR [path]
– Change the current directory
• CHDIR [..]
– Change to the parent directory The MKDIR Command
• MKDIR [dir]
– Make a new subdirectory The RMDIR Command
• RMDIR [dir]
– Remove an old subdirectory The XCOPY Command
• XCOPY src dest
– Copy directories and subdirectories
• XCOPY src dest /s /e /i /y /z
– Copy directories and subdirectories
– Except empty directories (/s)
– Including empty directories (/e)
– Assume destination is a directory (/i)
– Suppress prompt to overwrite existing directories (/y)
– Copy networked files in restartable mode (/z) Commands for Files
• EDIT Edit a file
• COPY Copy a file
• DEL Delete a file
• REN Rename a file
• MOVE Move a file
The EDIT Command
• EDIT
– Edit a file
• EDIT [file]
– Edit a particular file
• Use the ALT key to access the menus
• Use the MOUSE to access the menus
The COPY Command
• COPY src dest
– Copy a file The DEL Command
• DEL [file]
– Delete a file The REN Command
• REN src dest
– Rename a file The MOVE Command
• MOVE src dest
– Move a file The CLS Command
file with a .zip extension
No comments:
Post a Comment