How to define a filename in dos, Computer Engineering

Q. How to define a Filename in DOS?

Each file is given a name so that it can be referred to later. This name is termed as Filename. The filename in DOS can be up to eight alpha-numeric characters long. Optionally it can also have a period (.) followed by an extension name. The extension name should be up to three characters long. For example, consider the following filename:



REPORT2 is a filename. This filename does not have an extension name - 'DOC'. Its optional to use of an extension name in a filename . However, the extension name help out in organizing and identifying a file. For example 'DOC' may suggest that it is a document file and 'COM' may suggest that is a command file. If you use an extension name with a filename, usually you will have to identify the complete file name, normally you will have to specify the complete file name (i.e. contain the extension name) when using it with DOS commands. While giving names to files, you can use the following characters in filename:

 #, $,@, %, ^, &, -, _,',{},( ),~,0-9,a-z,A-Z

You cannot use other characters, such as semicolon (;), colon (:), coma (,), <, >, \, /, etc. in filename. Moreover, you should not use space in filenames. Some examples of invalid file names are:

Filename                                            Reason

SALE 2                                               Contains space

PROGRESSER                                     Contains more that eight characters

MY, File                                              Contains commas

CHAP_01.DOC4                                 Extension name contains more than 3 characters

If you use more than eight characters in the filename or more than three characters in the extension name, DOS may automatically shorten the filename by removing extra characters. Except this, some file names, such as COM 1, COM 2, LPT1, com and PRN are reserved by DOS for its own use. Therefore, do not use these names to name your file. Also, keep in mind that every DOS application programs including Excel, Word, WordStar, Base III PLUS AND Fox Pro follow the same file naming convention.

Posted Date: 7/6/2013 1:00:17 AM | Location : United States

Related Discussions:- How to define a filename in dos, Assignment Help, Ask Question on How to define a filename in dos, Get Answer, Expert's Help, How to define a filename in dos Discussions

Write discussion on How to define a filename in dos
Your posts are moderated
Related Questions
In this part you are required to develop the website that you designed in Your written report must describe any changes that you make to theoriginal plan with justification.

(a)  Explain in a few sentences the difference between a natural frequency and a resonant frequency.  Also clarify why for a specific system or component these frequencies may diff

DATAFLOW COMPUTING A substitute to the Von Neumann model of calculation is dataflow computation model. In the dataflow model, control is tied to flow of data. Order of instruct

What is meant by branch instruction? A branch instruction is an instruction which changes the contents of the PC with the branch target address. This address is usually get by

Is it possible to join ASP.NET webforms and ASP.MVC and make a single web application? Ans) Yes, it is possible to join ASP.NET webforms and ASP.MVC and develop a single web a

a) What command do you use to list all listening sockets? The output should also contain the name of the program to which the socket belongs.   b) Write the command to use to

What are the mapping techniques? a)Direct mapping b) Associative mapping c)  Set associative mapping

There are two goals to AI; the major one is to produce an artificial system that is about as good as or good than a human being at dealing with the actual world. The second goal is

Q. Define Decision Support System? Ans. The decision support system is an information system application which help decision making. DSS tends to be used in planning or analy

Write a program that computes the minimum and maximum of elements in an array in Assembly 8086.