WWoorrkkiinngg wwiitthh tthhee 
CCoommmmaanndd--LLiinnee IInntteerrffaaccee
Deciphering the 
Command-Line Interface 
 It’s a little like having an Instant 
Message conversation with your 
computer 
 The computer tells you it’s ready to 
receive commands by displaying a 
specific set of characters called a 
prompt
Deciphering the 
Command-Line Interface 
 Mike: _ 
You type a command and press ENTER to send it 
Mike: What kind of game? 
 Computer: _ 
The PC goes off and executes the command, and 
when it’s done it displays a new prompt, often along 
with some information about what it did 
Computer: A very fun game… 
 Mike: _ 
Once you get a new prompt, it means the computer 
is ready for your next instruction
Accessing the Command 
Line 
 The Command Prompt : C:> 
 Filenames and File Formats 
 Drives and Folders
Mastering Fundamental 
Commands 
 Structure: Syntax and Switches 
 DIR Command 
 Directories: 
– The CD Command The CD (or CHDIR) 
command enables you to change the 
focus of the command prompt to a 
different directory
Mastering Fundamental 
Commands 
 Moving Between Drives 
 Making Directories 
 Removing Directories 
 Running a Program
Working with Files 
 Attributes 
 Wildcards 
 Renaming Files 
 Deleting Files 
 Copying and Moving Files 
– COPY, XCOPY
Working with Batch Files 
 Edit 
– REM - Remarks 
– Pause - Pause the batch file 
– Date - System current date 
– Time – System current time 
– Prompt $P$G – Gives you the C:>

14 working with the command line interface

  • 1.
    WWoorrkkiinngg wwiitthh tthhee CCoommmmaanndd--LLiinnee IInntteerrffaaccee
  • 2.
    Deciphering the Command-LineInterface  It’s a little like having an Instant Message conversation with your computer  The computer tells you it’s ready to receive commands by displaying a specific set of characters called a prompt
  • 3.
    Deciphering the Command-LineInterface  Mike: _ You type a command and press ENTER to send it Mike: What kind of game?  Computer: _ The PC goes off and executes the command, and when it’s done it displays a new prompt, often along with some information about what it did Computer: A very fun game…  Mike: _ Once you get a new prompt, it means the computer is ready for your next instruction
  • 4.
    Accessing the Command Line  The Command Prompt : C:>  Filenames and File Formats  Drives and Folders
  • 5.
    Mastering Fundamental Commands  Structure: Syntax and Switches  DIR Command  Directories: – The CD Command The CD (or CHDIR) command enables you to change the focus of the command prompt to a different directory
  • 6.
    Mastering Fundamental Commands  Moving Between Drives  Making Directories  Removing Directories  Running a Program
  • 7.
    Working with Files  Attributes  Wildcards  Renaming Files  Deleting Files  Copying and Moving Files – COPY, XCOPY
  • 8.
    Working with BatchFiles  Edit – REM - Remarks – Pause - Pause the batch file – Date - System current date – Time – System current time – Prompt $P$G – Gives you the C:>