Computing.Net > Forums > Disk Operating System > folder name with a space, Urgent!

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.

folder name with a space, Urgent!

Reply to Message Icon

Name: sj
Date: February 18, 2002 at 06:55:37 Pacific
Comment:

Hi all,
My working environment is windowns NT 4.0 and my question is when we have a space in a folder name dos doesn't recognize it(for example ProgramFiles. Is there a way to get around this problem without changing the folder name?
Any thoughts will help!



Sponsored Link
Ads by Google

Response Number 1
Name: chris
Date: February 18, 2002 at 10:49:49 Pacific
Reply:

don't know about NT, but in win98 all you gotta do is use quotes, as in

cd\

cd "program files"


0

Response Number 2
Name: Roger The Shrubber
Date: February 18, 2002 at 12:11:14 Pacific
Reply:

Put quote marks (as the previous post mentioned) around the path statement so it looks like this -

"C:\Program Files\program folder\yourprogram.exe"




0

Response Number 3
Name: Brian
Date: February 18, 2002 at 14:28:02 Pacific
Reply:

Dos sometimes renames the files/folders, for instance Program Files becomes
Progra~1. Use the "dir" command to read the names of the folders.


0

Response Number 4
Name: Secret_Doom
Date: February 20, 2002 at 09:49:22 Pacific
Reply:

You'll only be able to view the long folders' REAL names ("PROGRA~1", for instance) with the DIR command if you're in DOS REALMODE (not on a dos prompt inside windows)

In order to see the folders' real names inside a dos box, DIR won't help you.

The following will display all the subdirectories from C:\FOLDER, with their real names, at relative position ("GAMES\DATA~1" for instance, not "C:\FOLDER1\GAMES\DATA~1")
There will be a \NUL sufix on each directory name.

xcopy c:\folder\nul c:\ /l/n/s

This other could also be of use:
attrib/s

-- Secret_Doom - Leonardo Pignataro --

secret_doom@hotmail.com
www.batch.hpg.com.br


0

Response Number 5
Name: Henny
Date: February 20, 2002 at 18:56:44 Pacific
Reply:

Don't forget the fact we're talking NT 4.0 here. no dos / win9x.

The best way to address these long filenames
(excuse the lame english)

using quotes like Chris and Roger suggested
is indeed the best solution to your problem


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






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: folder name with a space, Urgent!

MSDOS printing with space in device name www.computing.net/answers/dos/msdos-printing-with-space-in-device-name/9862.html

problem with folder names and stuff www.computing.net/answers/dos/problem-with-folder-names-and-stuff/10807.html

Copying files with a space www.computing.net/answers/dos/copying-files-with-a-space/16475.html