DOS change directory

J

Jim Bennett

I'm exiting to a DOS command window from XP and trying to select the
directory of "My Documents". However I can not get the chdir command syntax
correct and I get I've tried every possible combination and solution I can
think of, see below for deatil

C:\DOCUME~1\JIM>dir
Volume in drive C has no label.
Volume Serial Number is 48EB-DE12

Directory of C:\DOCUME~1\Jim

11/04/2004 06:53 PM <DIR> .
11/04/2004 06:53 PM <DIR> ..
11/09/2004 05:42 PM <DIR> Desktop
10/10/2004 09:51 PM <DIR> Favorites
11/11/2004 08:45 PM <DIR> My Documents
0 File(s) 0 bytes
7 Dir(s) 9,670,533,120 bytes free

C:\DOCUME~1\JIM>cd my documents
Too many parameters - documents

C:\DOCUME~1\JIM>cd my%20%documents
Invalid directory

C:\DOCUME~1\JIM>cd my*
Invalid directory
 
M

Mike Hall

You are not exiting to a Dos command with XP.. you are running the command
prompt window in XP..
 
W

Wesley Vogel

C:\>cd C:\DOCUME~1\WESLEY~1.VOG

C:\DOCUME~1\WESLEY~1.VOG>dir
Volume in drive C is Local Disk
Volume Serial Number is zxy

Directory of C:\DOCUME~1\WESLEY~1.VOG

11/11/2004 07:41 PM <DIR> .
11/11/2004 07:41 PM <DIR> ..
11/11/2004 08:34 PM <DIR> Desktop
11/11/2004 01:16 PM <DIR> Favorites
11/07/2004 09:29 AM <DIR> My Documents
<SNIP>

C:\DOCUME~1\WESLEY~1.VOG>cd My Documents

C:\DOCUME~1\WESLEY~1.VOG\My Documents>dir
Volume in drive C is Local Disk
Volume Serial Number is yzx

Directory of C:\DOCUME~1\WESLEY~1.VOG\My Documents

11/07/2004 09:29 AM <DIR> .
11/07/2004 09:29 AM <DIR> ..
<SNIP>
=====

C:\>cd C:\Documents and Settings\Wesley P. Vogel

C:\Documents and Settings\Wesley P. Vogel>dir
Volume in drive C is Local Disk
Volume Serial Number is zyx

Directory of C:\Documents and Settings\Wesley P. Vogel

11/11/2004 07:41 PM <DIR> .
11/11/2004 07:41 PM <DIR> ..
11/11/2004 08:34 PM <DIR> Desktop
11/11/2004 01:16 PM <DIR> Favorites
11/07/2004 09:29 AM <DIR> My Documents
<SNIP>

C:\Documents and Settings\Wesley P. Vogel>cd My Documents

C:\Documents and Settings\Wesley P. Vogel\My Documents>dir
Volume in drive C is Local Disk
Volume Serial Number is xyz

Directory of C:\Documents and Settings\Wesley P. Vogel\My Documents

11/07/2004 09:29 AM <DIR> .
11/07/2004 09:29 AM <DIR> ..
<SNIP>
 
V

VManes

try using cmd.exe instead of command.exe, it's a long file name aware
command line interpreter

Val
--
Bringing you BeadWizard Design Software
www.beadwizard.com
***************************
Practice safe eating -- always use condiments.
***************************

I'm exiting to a DOS command window from XP and trying to select the
directory of "My Documents". However I can not get the chdir command syntax
correct and I get I've tried every possible combination and solution I can
think of, see below for deatil

C:\DOCUME~1\JIM>dir
Volume in drive C has no label.
Volume Serial Number is 48EB-DE12

Directory of C:\DOCUME~1\Jim

11/04/2004 06:53 PM <DIR> .
11/04/2004 06:53 PM <DIR> ..
11/09/2004 05:42 PM <DIR> Desktop
10/10/2004 09:51 PM <DIR> Favorites
11/11/2004 08:45 PM <DIR> My Documents
0 File(s) 0 bytes
7 Dir(s) 9,670,533,120 bytes free

C:\DOCUME~1\JIM>cd my documents
Too many parameters - documents

C:\DOCUME~1\JIM>cd my%20%documents
Invalid directory

C:\DOCUME~1\JIM>cd my*
Invalid directory
 

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