8.3 Filename - How To Convert A Long Filename To A Short Filename

How To Convert A Long Filename To A Short Filename

Sometimes it may be desirable to convert a long filename to a short filename, for example when working with the command prompt. A few simple rules can be followed to attain the correct 8.3 filename.

1. A SFN filename can have at most 8 characters before the dot. If it has more than that, you should write the first 6, then put a tilde ~ as the seventh character and a number (usually 1) as the eighth. The number distinguishes it from other files with both the same first six letters and the same extension.

2. Dots are important and must be used even for folder names (if there is a dot in the folder name). If there are multiple dots in the long file/directory name, only the last one is used. The preceding dots should be ignored. If there are more characters than three after the final dot, only the first three are used.

3. Generally:

  • Any spaces in the filenames should be ignored when converting to SFN.
  • Ignore all dots except the last one. Leave out the other dots, just like the spaces.
  • Commas and square brackets are changed to underscores.
  • Case is not important, upper case and lower case characters are treated equally.

To find out for sure the SFN or 8.3 names of the files in a directory

use: "dir /x" shows the short names if there is one, and the long names.

or : "dir /-n" shows only the short names, in the original DIR listing format.

Read more about this topic:  8.3 Filename

Famous quotes containing the words convert, long and/or short:

    The study of crime begins with the knowledge of oneself. All that you despise, all that you loathe, all that you reject, all that you condemn and seek to convert by punishment springs from you.
    Henry Miller (1891–1980)

    He had long before indulged most unfavourable sentiments of our fellow-subjects in America. For, as early as 1769,... he had said of them, “Sir, they are a race of convicts, and ought to be thankful for any thing we allow them short of hanging.”
    Samuel Johnson (1709–1784)

    When much intercourse with a friend has supplied us with a standard of excellence, and has increased our respect for the resources of God who thus sends a real person to outgo our ideal; when he has, moreover, become an object of thought, and, whilst his character retains all its unconscious effect, is converted in the mind into solid and sweet wisdom,—it is a sign to us that his office is closing, and he is commonly withdrawn from our sight in a short time.
    Ralph Waldo Emerson (1803–1882)