answersLogoWhite

0


Best Answer

The file name must not exceed eight characters separated by a dot having up to three extension letters. Very little punctuation or special characters can be used in the name or extension other than a hyphen, tilda, brace or an underscore. In fact, if the file name is corrupted and a character you cannot type is in the name, it makes it difficult to deal with the files. There was a little trick where some users held down ALT and typed 255 on the number pad and added that character to the name. Others would see a name with a space on the end and then wonder why entering a space doesn't work.

For example:

abcdef12.123

hello.c

readme

are all valid filenames.

Directories usually have a null extension, though they can have an extension. Files don't have to have an extension but usually do.

For example:

dir *. will display mostly directory names.

In later DOS versions, you would do Dir /ad if you want directories so you won't get files that have no extensions nor exclude directories that have extensions. This command might even help find hidden directories.

The 8.3 limits apply to older versions of DOS that use a FAT12 or FAT16 file system. Starting with FAT32, long filename support (LFN) was added, and a few additional characters could be used in the long file names, including spaces, and file names could be up to 64 characters long. However, there were underlying short file names that were there for reverse compatibility, and they still follow the above rules.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are rules to name a file in MS-DOS?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is fullform of ren command in dos?

ren stands for rename. It is used to rename a file in MSDOS. Syntax : ren old_filename new_filename if you want to rename a file with name ABC to XYZ you'll follow the following syntex: ren ABC XYZ


What are the rules to create file DOS?

- File name should be 8 characters long - Extentions are optional


What file names are legal under the DOS file naming rules?

8.3 file name i.e. <8 characters fo filename>.<3 chars for extension> But U can not use special characters in file name as \ / : * ? " < > |


What rules must be followed for creating my own file extensions for my own program's output files?

Rules for file extensions are based mainly on the underlying operating system and/or file system. Generally speaking, file extensions are just a part of the file name, and can be set to whatever you like.


What is the software of MS DOS shell?

There is no any software for MSDOS shell as MSDOS is itself a system software.


Is Io.sys a hidden file?

Yes. Along with MSDOS.sys, they are the two hidden system files that are loaded and executed when you boot your computer. In newer operating systems, IO.sys and MSDOS .sys are combined into one hidden file.


Cannot complete install program configuration?

There appears to be a configuration error. You have associated Konqueror with application/x-msdos-program, but it cannot handle this file type.


How can you save files on notepad in bat format or if you can't please tell me which text editor can?

its very simple,while saving the file, just type the filename with .bat extension and put the whole name in double quotes and notepad will save the file as MSDOS batch file. for example if you want the filename to be myfile then while saving the file, use: "myfile.bat" if you do not use double quotes, it will attach one more extension to name i.e. .txt


What file systems are supported by FreeBSD?

UFS is the main filesystem for FreeBSD, but ZFS is also a popular choice. ext2, msdos, ntfs (read-only), and smb are also supported.


When running commands such as ipconfig or tracert saved in a .bat file how do I save the output. FYI I am using notepad?

Use "> xxx.xxx" after the name of the .bat file on the command line to save the output in file xxx.xxx Example: myscript.bat > myoutput.txt This runs the commands in the file myscript.bat, but instead of printing the output on the screen saves the output to the file myoutput.txt Note that this command syntax is used in Unix (Unix probably copied it from Multics) and Microsoft added it to MSDOS along with lots of other Unix like features at some point, because of their usefulness (you could not do this with early versions of MSDOS which was based on CP/M-86 which borrowed the syntax of one of the DEC PDP-8 OSs; none of which could redirect program output to files).


How do you get in ms-dos?

Start=>Run=>msdos


What are the rules in naming a source file in JAVA program?

The basic rule is that the file name should match the name of the topmost public class in the .java file. The names are usually camel case and can contains alphabets and numbers. It should begin only with an alphabet.