CD E:\ wont change directory..

MrGuvernment

Fully [H]
Joined
Aug 3, 2004
Messages
20,558
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?
 

Ranma_Sao

2[H]4U
Joined
Mar 15, 2002
Messages
2,621
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.
 

Demon10000

Supreme [H]ardness
Joined
Aug 20, 2006
Messages
4,502
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.
 
Joined
Oct 10, 2002
Messages
3,441
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.
 

zandor

2[H]4U
Joined
Dec 14, 2002
Messages
3,822
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.
 

/usr/home

Supreme [H]ardness
Joined
Mar 18, 2008
Messages
6,160
I do that all the time and then think, "shit, gotta keep the cd off"
 

MrGuvernment

Fully [H]
Joined
Aug 3, 2004
Messages
20,558
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!
 

Deads0uls

Limp Gawd
Joined
Oct 13, 2009
Messages
289
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.
 
Joined
Oct 10, 2002
Messages
3,441
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
 
Top