Using spaces in MS-Dos

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi how would I enter a folder or filename in DOS if there is a space between
two words. Can I just use a _ or put the filename in "quotes"?
 
MR EDDD said:
Hi how would I enter a folder or filename in DOS if there is a space
between
two words. Can I just use a _ or put the filename in "quotes"?


Double quotes.
 
MR EDDD said:
Hi how would I enter a folder or filename in DOS if there is a space between
two words. Can I just use a _ or put the filename in "quotes"?

The full answer is: DOS (which is an operating system)
does NOT support file names with embedded spaces.

However, since you probably mean the "Command Prompt"
rather than DOS, you should surround the whole path+file
name with double quotes, as suggested by Vanguard.
 
MR said:
Hi how would I enter a folder or filename in DOS if there is a space
between two words. Can I just use a _ or put the filename in
"quotes"?


Vanguard and Pegasus have already answered your question. I just wanted to
add a quick comment, about your suggestion to use an underscore character
( _ ) in place of the space.

Although they may look a little alike, a space and an underscore character
are two completely different characters. You can no more substitute one for
the other than you could substitute the number "1" for the letter "l". The
names "hiberfil.sys" and "hiberfi1.sys" may also look alike, but they too
are completely different.
 
Back
Top