What is the difference between "
C:FILE.TXT" and "
Are they the same?
They are not the same.
Edit: Command Prompt Example:
Windows remembers a current working directory for each drive. Say you are working in directory
C:\UTILS> F: F:\> CD BIN F:\BIN>
At this point the current working directory for
You can verifiy this with the
F:\BIN> CD C: C:\UTILS F:\BIN>
Note that you did not change the working drive back to
As you will see from the following command examples, the use of a backslash (
F:\BIN> COPY F:PROGRAM.EXE C: Copies* F:\BIN\PROGRAM.EXE to C:\UTILS\PROGRAM.EXE F:\BIN> COPY F:PROGRAM.EXE C:\ Copies* F:\BIN\PROGRAM.EXE to C:\PROGRAM.EXE F:\BIN> COPY F:\PROGRAM.EXE C: Copies* F:\PROGRAM.EXE to C:\UTILS\PROGRAM.EXE F:\BIN> COPY F:PROGRAM.EXE C:NEW\NEW_PROG.EXE Copies* and renames F:\BIN\PROGRAM.EXE to C:\BIN\NEW\NEW_PROG.EXE
* 'Copies' means 'attempts to copy'. These commands will fail if the assumed directory structures and current working directories don't exist or are changed by another process.
In the case where the working directory is the root directory (eg.
|show 8 more comments|