Dos Commands

L

Liz

Dos commands in XP.
When you go to a command window and type c:
it may drop you at c:\documents and settings\my documents\
I am writing a batch file that needs to bring me to the
root of c:
in novell I would type cd.. \c:

this doesnot work in Microsoft. what is the command to
bring me to the root of c:

and what is the command to rename a directory

in novell it was ren test

Thank you.
 
C

Carey Frisch [MVP]

Open the Command Prompt and type: CD C:\ , and hit enter.

Windows XP Command-line reference A-Z
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx

--
Carey Frisch
Microsoft MVP
Windows XP - Shell/User

Be Smart! Protect your PC!
http://www.microsoft.com/security/protect/

---------------------------------------------------------------------------------


| Dos commands in XP.
| When you go to a command window and type c:
| it may drop you at c:\documents and settings\my documents\
| I am writing a batch file that needs to bring me to the
| root of c:
| in novell I would type cd.. \c:
|
| this doesnot work in Microsoft. what is the command to
| bring me to the root of c:
|
| and what is the command to rename a directory
|
| in novell it was ren test
|
| Thank you.
 
L

Liz

Thanks so much. I guess caps makes a difference.

I am trying to rename a directory on my c:\ that is siting
in a long path. Microsoft suggests the move command.

I am trying this but it isn't working. any light you can
shed is appreciated.
 
W

Walter Clayton

Command line stuff is, for the most part, case insensitive.

cd \ [enter]

always takes you to the root of the current drive. No need to specify the
drive.

cd \{dir}\{dir}\{etc..} [enter]

will take you to the specific directory starting from the root.

cd {dir}\{dir}\{etc..} [enter]

is relative to the current directory.

cd .. [enter]

takes you up one level.

Now a bit more about what you're attempting to do and the problem you're
having. Assuming this is an NTFS partition there may be a permissions issue
if you can't delete the directory in either the GUI or via command line.
Move will potentially run afoul of the same issues.

--
Walter Clayton - MS MVP(WinXP)
Associate Expert
http://www.microsoft.com/windowsxp/expertzone
Any technology distinguishable from magic is insufficiently advanced.
http://www.dts-l.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top