answersLogoWhite

0

You cannot have a file name containing a question mark; it is an invalid character. However, you can use the question mark as a wildcard. E.g., to list every .txt file that has exactly two characters in its file name you would use the following command:

dir ??.txt

The '?' wildcard simply means any one character. If you wish to specify any group of characters, use the asterisk wildcard instead:

dir *.txt

For more information, look up "wildcard" in the command line documentation.

Most systems limit a file name to alphabet letters A-Z (and a-z) and numbers 0-9 and some special characters such as "$", "_", "#" with a single period separating the name part from an extension part (i.e. document.txt spreadsheet.xls). However, the actual directory structure in modern systems uses 8-bit characters for the file name so it is not impossible to have "invalid" characters in a file name. On the Microsoft platforms, a system or hardware misadventure can resulted in a corrupted file name entry with punctuation or non-printable characters in the file name. Some utilities deal with this by displaying question mark characters as printable substitutes for them.

Unix/linux implementations, being less restrictive, allow file names to have non-printable characters by using the backslash ("\") escape code.

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

What is the purpose of the question in a file name?

the question mark is a wild card for one character if you do not know what letter or number it should be


In a command line what is the purpose of the question mark in a file name?

To help look things documents and other things up.


What is the purpose of a question mark in a file name?

Within the command prompt, the question mark is used with a filename as a wildcard for one character you do not know the entire path of. For example, if you did not know the file extension for a certain filename such as WINWORD, you would type "WINWORD.???" without quotations.


What can not go into a Excel workbook file name?

Special characters, such as the asterisk and the question mark.


What is the purpose of the question mark in a file name in a command line?

it is a wildcard for each unknown letter in a command. If you want to find all files in a directory that start with a and have a three letter file extention, you would use the command dir a*.???


What is the name of this mark '?

Question Mark ? is a question mark.


What is the name of the symbol for a question mark?

what does a question mark sign mean Answer The answer is in the question, the symbol is called a question mark- the "mark" on the paper or screen which indicates a question.


What is the name of the upside-down question mark?

that's a Spanish question mark


What is the name for the question mark?

Another word for question mark is interrogation point.


What is the name of the punctuation mark that is used after the words bread and butter?

Question mark. That is a stupid question.


Your name and a question mark?

This has noo answer!!!


Could you please name this mark?

The mark at the end of that sentence? Sure. I'll name it a question mark. If I'm naming an actual person named Mark, then I'll stick with his current name of Mark. Otherwise, I'm not really sure what mark you're referring to. Try rewording your question.