DIR location will show you the contents of the location.
C: on many commands, including the
DIR command, refers to the C drive, and refers to the current directory. To see your current directory, type this:
cd command is typically used to change which directory is current. However, in MS-DOS (and similar operating systems, including modern Microsoft Windows, but not including Unix), running
cd by itself will show you the current directory.
In all probability, if you haven't been using the
cd command, then your current directory is probably the directory that your operating system was installed to. (At least, that's a common behavior for Microsoft Windows systems.)
You can do this:
cd "C:\Program Files"
That will show you the contents of
Similarly, you can do something like:
copy C:*.* and all contents from the current directory will be copied.
When you specify
C:\, then the backslash indicates the "root" directory, also known as the "top level" directory. That might, or might not, be the same thing as your current directory.
If you just specify
DIR \, then the current drive will be assumed. (You can type something like
D:, as an entire command (on a line by itself), to change which drive is considered to be the "current drive".) If you just specify
DIR, then the current drive and the current directory will be assumed.