Working with directories
In Windows, the backslash \
is used to separate paths. This is different from the Mac/Unix world which uses a slash /
.
Changing directory
The cd
(change directory) command is used to, well, change directory. This allows you to change where you are 'standing' at the command line.
Change to your home directory
cd %HOMEPATH%
Change to your documents directory
cd Documents
Change to an absolute path
cd c:\Users\Alice\music
Making
mkdir
will make a directory
Make a directory 'test' in the current directory
mkdir test
Make a directory 'test' at a specific location
mkdir c:\Users\alice\documents\test
Deleting directories
rmdir /s
(remove directory) will delete a directory.
Delete a directory 'test' in the current directory
rmdir /s test
Delete a specific 'test' directory
rmdir /s c:\Users\alice\documents\test
Note: Be very sure of the path you give to rmdir
before you press ENTER