| Distinguished Member with 5,315 posts. | | Join Date: Aug 2007 Location: Oregon, USA Experience: Intermediate |
26-Jun-2009, 02:58 AM
#63 |
Keep in mind when using the CD command, if you are switching drives, you must use the /D switch to actually change to that drive. Without the /D, it changes the current directory on the specified drive, but doesn't switch to it.
For example, assuming you are in C:\ and D:\ is the current directory on D: (Keep in mind D:\ is two parts, the Drive D: and the directory \)
Try these four commands (using real folders of course)
C:\>CD D:\Windows\System32
C:\>Dir D:
c:\>Dir D:\
C:\>copy test.txt D:
Note the prompt doesn't change, you are still in C:\.
The Dir D: command will display a directory for D:\Windows\System32, not the root of the D: drive. This is because you specified the drive letter without a directory, so it uses the Current Directory for that drive.
Dir D:\ will display the root of D: as you have specified a directory
The copy command copies to D:\Windows\System32, not to D:\
PushD will change drive letters, and should be followed by a PopD to clear the stack, but isn't really needed. It will be cleared when the Command Prompt closes. PushD also doesn't need to have paths with spaces quoted
As you've discovered, if you delete the Temp folder (or any other system folder), probably best to immediately re-create one to avoid it being MIA.
__________________ Microsoft MVP - Windows Desktop Experience
Of course I know all the answers  ; I just don't always match the answers to the right questions Are you aware of the New Signature Limitations? |