CD E:\ wont change directory..

MrGuvernment

Fully [H]
Joined
Aug 3, 2004
Messages
21,809
Server 2008 R2 OS.

DOS window open...

trying to get from C drive to E drive..

type in

CD E:\

skips a line and goes back to

C:\> prompt

type in

CD E:

same result

CD E

It then show

C:\> CD E:
E:\

then goes back to C:\> prompt..

ran as administrator, no different...


what is up?
 
cd /?
Use the /D switch to change current drive in addition to changing current
directory for a drive.

This posting is provided "AS IS" with no warranties, and confers no rights.
 
You can pass the drive as a part of the path you're trying to change to, but it won't change drives unless you pass it an extra parameter (as noted above)

so

C:\>CD C:\Windows\System32

would work, but

D:> CD C:\Windows\System32

wouldn't work.
 
Sounds like someone needs a refresher class in DOS. :p

Actually I think I did the same thing a few months ago but finally figured it out. I'm really getting rusty on the DOS commands.
 
D:\> cd C:\Windows\System32 changes the current directory on the C: drive to \Windows\System32. If you ran that with your current drive set to D:, then typed "C:" you'd end up with C:\Windows\System32 as your current directory.
 
I do that all the time and then think, "shit, gotta keep the cd off"
 
Ya, i haven't used dos in ages, most i use is psexec now and then, but i don't change directories often, had to reset some permissions on a windows folder share filled with about 8G of files cause someone got in and screwed them up!

but will make note of this thread for sure!
 
Just remember, CD = Change Directory.

A drive is not a directory, change drives, then change directories.

That is how I remember it in my head. Use the CD mnemonic.
 
Class.....your next assignment will be using the FOR command to perform multiple tasks.
And there will be a pop quiz on which commands are internal and which are external commands. :D
 
Back
Top