Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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!

Put quote marks (as the previous post mentioned) around the path statement so it looks like this -
"C:\Program Files\program folder\yourprogram.exe"

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

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

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

![]() |
![]() |
![]() |

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