How to Remove Spaces from an MS-DOS Filename or Subdirectory (65163)
The information in this article applies to:
- Microsoft MS-DOS operating system 3.1
- Microsoft MS-DOS operating system 3.2
- Microsoft MS-DOS operating system 3.21
- Microsoft MS-DOS operating system 3.3
- Microsoft MS-DOS operating system 3.3a
- Microsoft MS-DOS operating system 4.0
- Microsoft MS-DOS operating system 4.01
- Microsoft MS-DOS operating system 5.0
- Microsoft MS-DOS operating system 5.0a
- Microsoft MS-DOS operating system 6.0
- Microsoft MS-DOS operating system 6.2
- Microsoft MS-DOS operating system 6.21
- Microsoft MS-DOS operating system 6.22
This article was previously published under Q65163 SUMMARY
Although your application program may allow you to enter a filename or
directory name that contains a space character, MS-DOS does not allow
filenames or directory names to have spaces in them.
If you create a filename containing a space, you cannot subsequently
remove, load, or delete the file unless you first rename it.
For example, if the file appears in the directory as
TEST CAR TXT 4098 01-01-80 3:10pm
then MS-DOS does not allow you to manipulate the file unless you
delete the space between "TEST" and "CAR."
If you create a directory name with a space in it, you must remove the
directory.
REFERENCES
The user's guides for all Microsoft MS-DOS versions contain a section
on valid MS-DOS filenames.
"Microsoft MS-DOS User's Guide and User's Reference version 4.0," page 16
"Microsoft MS-DOS User's Guide and Reference version 5.0," page 69
"Microsoft MS-DOS User's Guide versions 6.0-6.21," page 35
"Microsoft MS-DOS Upgrade User's Guide version 6.22," page 35
| Modification Type: | Major | Last Reviewed: | 5/12/2003 |
|---|
| Keywords: | KB65163 |
|---|
|