Everything2
Near Matches
Ignore Exact
Full Text
Everything2

DOS filenames with spaces in them

created by mrnobo1024

(thing) by mrnobo1024 (4.4 y) (print)   ?   (I like it!) Sun Jun 16 2002 at 2:48:48

Back in the old DOS days, occasionally some luser would create a file with a space in its filename:
 Volume in drive C is HARD DRIVE
 Volume Serial Number is 365B-16F1
 Directory of C:\

AUTOEXEC BAT           818  12-25-00 12:00a
CONFIG   SYS           395  10-31-88 11:59p
COMMAND  COM         2,198  03-21-93 10:01p
IO       SYS         3,296  05-16-29  5:23p
MSDOS    SYS         1,958  06-15-92  3:25a
BAD FILE TXT            35  13-37-82  6:66a
         8 file(s)          8,039 bytes
         0 dir(s)          352.90 MB free
The horror, the horror! It can't be deleted normally, for "del bad file.txt" would only look for the file "bad"! The only hope would be to use COMMAND.COM's little-known quoting feature:

del "bad file.txt"

With the invention of Windows 95 and its long filenames, having spaces in them became normal and didn't require hours of rooting through the manual to find out how to delete. nosfentor informed me that del bad?file.txt would also work. However that would also delete files with names like badjfile.txt.


(thing) by Kyudosha (1.3 y) (print)   ?   (I like it!) Fri Nov 08 2002 at 14:53:04

Also, some of these files with spaces were created using the even-less-well-known empty character produced by pressing alt+255(on the number pad). This was used by crafty fellows during the old days to thwart even quoted deletion attempts. Of course, "*" or "?" could be used to great advantage to delete either type of spaced filename.

printable version
chaos

alt 255 command.com Sokath, his eyes uncovered EMX
Bad command or file name ASCII 127 What to do if you've got too many votes on your hands luser
4DOS You, standing Odo Gay Pride
MS-DOS Untitled Normal Page Space Shuttle Second Stage Ascent Victor I
The Terrible Secret of Space double standard The Voyage of the Mimi filename
sh dir E2 HTML bash
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Little presents from the Node Fairy:
Civilization
Cocteau Twins
Mountain Dew
Quadrophenia
A Swiftly Tilting Planet
End of the World
Hammond B-3
Gazebo
Planetary Linguistics
War on Iraq 2003
Pol Pot
Gaussian formula
Thanksgiving, suicide, and the breakdown of an already dysfunctional family
New Writeups
argv
Astral Plane(idea)
Madara
One Winged Angel(fiction)
Tom Rook
Talk is cheap(poetry)
shaogo
Adelle Davis(person)
Aerobe
race car g sfjsgsd(poetry)
Binah
Dream Log: July 5, 2008(dream)
StrawberryFrog
Forgotten things in space(idea)
antigravpussy
velvet revolution fairy tale(idea)
Heitah
Nerve agent VX(thing)
Pavlovna
shite(idea)
wonton
Days and nights come together in a slow falling down(fiction)
Pavlovna
wee(idea)
katherine
root log: July 2008(log)
Madara
There’s nothing like a trail of blood to find your way back home(fiction)
Heitah
After sneeze(idea)
Everything 2 is brought to you by the letter C and The Everything Development Company