hi friends.......i'm using XP sp2....when I open cmd the it shows the current directory ie: "D:\Documents and settings\user>"
which is fine and I was able it change the directory using,
cd e: or CD E:
but from yesterday i'm not able to do that...during that i only reinstalled java i.e jdk & jre 6.0.1 from jdk/jre 5.0.10 and made some changes in the "environment variables". now when I try
it changes to drive E: or F: for a fraction of sec. but then again it changes to the default DIR automatically.
but when try "cd d:\program files" or "cd d:\windows" it works fine.
dont know whats happening.....please help guys
This thread has not been solved. What the original poster was trying to do (and what I am trying to do while searching for the same solution) is switch actual drives from the MS-DOS line. Using commands such as:
only give us control and viewing of the same drive. We want to go from C:\Program Files\ to D:\other stuff or E:\another drive folder\, not just from C:\Program Files to C:\ or C:\Program Files\World of Warcraft\.
If you wish to change the drive alone to end up in its root, then type
If you wish to change the drive AND specify a directory or file at the same time then type
cd /D E:\"other stuff"
Then when inside the directory "other stuff" you can open a file this_one.fil by typing
See the D switch? Use the "" when there is a space in the pathname. It could also be this...
cd /D "E:\other stuff"
And I doubt you are using MS-DOS in XP?... it is likely the command line in cmd.exe.
cd .. takes you to the parent of the directory you are in, and is a one-way street ending at the root, with no branching possible.
Also type cd /?