Using the command line

Open the Windows Command Prompt.

Note: In Windows, the separator between file/folder names is supposed to be the backslash (\) but the command line (at least in 2017 using Windows 10) will also appears to accept the regular slash (/) unless you provide a switch value (see the xcopy command). I like using the slash because it's easier to type, but either should work. If you ever try using the slash and you think your command is correct but it doesn't work, try it again with the backslash.

Moving around

1.    To change to a drive: N:

2.    To move to the top level: cd/

3.    To move down a level (folder names with blanks must be enclosed in quotation marks): cd "All courses"

4.    To move down multiple levels: cd "All courses/Kleen courses/CSCI100"

5.    To move up a level: cd..

6.    To move up two levels: cd../..

Finding files

7.    To get a listing (directory) of all of the files: dir

8.    To get a listing that will pause: dir/p

9.    To get a listing of doc files: dir *.doc

10. To copy a file (first file is the source, second is the destination): copy beatles.doc c:/users/kleen/desktop

11. To copy a file to the current folder (omit the destination): copy ../stuff/beatles.doc

12. To copy a folder and all subfolders: xcopy/e \csci100

Creating a directory: md junkFolder

Deleting a file: del beatles.doc

To delete all doc files: del *.doc