Computing.Net > Forums > Disk Operating System > Using DOS in XP

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Using DOS in XP

Reply to Message Icon

Name: Mike178
Date: March 15, 2004 at 11:07:19 Pacific
OS: Windows XP Home Edition 5
CPU/Ram: Pentium 4, 1.7 GHz 51
Comment:

I am trying to understand some things with DOS in windows xp.

I know you can change to long name directories by using:

cd abcdef~1

But how can I change to directories such as:

"My Folders"

I have tried all combinations of underscores and ~

Help please!


Thanks




Sponsored Link
Ads by Google

Response Number 1
Name: doschap
Date: March 15, 2004 at 11:18:43 Pacific
Reply:

Mike
Use the full path. eg. If your prompt is c:\
cd\documents and settings\mike\my documents
would work if the path is correct.


Bob

Murphy was an optimist.


0

Response Number 2
Name: sarahhh
Date: March 15, 2004 at 11:26:04 Pacific
Reply:

Another possibility is omitting the spaces, so instead of this:

cd "My Folders"

use this:

cd MYFOLD~1

Noticed this on XP and Win95. Hope this helps.


0

Response Number 3
Name: Mike178
Date: March 15, 2004 at 12:50:40 Pacific
Reply:

Thanks sarahhh!

That was EXACTLY the string I was in search of!

Thanks again

Mike


0

Response Number 4
Name: RWe
Date: March 15, 2004 at 15:53:16 Pacific
Reply:

on a side note, if there are spaces in your directory/file name, you can enclose them in quotes.

eg: cd "c:\documents and settings\all users"

or if you're lazy, you could add a wildcard after a partial name.

eg: cd window*

However this only works if the filespec is unique. If you had similar names like (c:\windows) and (c:\window scripts) you'll need to be more specific.
Well, this works on NT, but should also apply with the "dos mode" in XP.

-Rich


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Detect if USB Mouse prese... Batch-File Scripting



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Using DOS in XP

DOS in XP www.computing.net/answers/dos/dos-in-xp/10709.html

why no sound on dos games in xp www.computing.net/answers/dos/why-no-sound-on-dos-games-in-xp/14371.html

Visual FoxPro using DOS www.computing.net/answers/dos/visual-foxpro-using-dos/7167.html