29

Since my first Windows 98 (and even now on Win7), I could enter the first 6 letters (symbols) of a folder's name and add ~1 after it (when there was just one folder with those six letters in current directory), and it would work as the full name of it. And it appears that if there are more than one folder with the same six first symbols in its name, I can use FOLDER~2 and so on, and it will open the corresponding folder, as if I entered its full name. Like c:\progra~1 will open C:\Program Files and c:\progra~2 will open C:\Program Files (x86) on win7 64 bit.

How does this work?

8
  • 1
    It doesn't happen to me. If I open C:\progra~1 the full folder name is also shown instead of the abbreviation. Besides: What is the intention of your question? What do you want to achieve?
    – speakr
    Jan 7, 2013 at 16:12
  • @speakr: Same here. Just wanted to post that. Jan 7, 2013 at 16:13
  • Started to answer this based primarily on the actual question title, then realized I misread it...it appears you know how this works, your real question is more subtle. I can't duplicate this beahvior either, fwiw.
    – Shinrai
    Jan 7, 2013 at 16:14
  • Okay, I decided to change the question, since I can't always reproduce this now :x Anyway, it hasn't been asked before, could be handy for someone else. Jan 7, 2013 at 16:19
  • 1
    Note: Short file names can be disabled.
    – Karan
    Jan 7, 2013 at 23:22

2 Answers 2

15

Knowledge base entry

Basically on FAT systems all directory entries are still stored in a format compatible with the old 8.3 format; longer names are stored in a series of hidden entries. The short name is there for compatibility.

2
  • Link doesn't work. Do you remember what it was?
    – Daniel
    Mar 26, 2018 at 9:52
  • It appears Microsoft have deleted that knowledge base entry, which is pretty bad of them!
    – pjc50
    Mar 26, 2018 at 11:21
7

These are 8.3 filenames, and date back to the days of MS-DOS, which did not support longer filenames.

Windows 95 and VFAT introduced the ~N tilde notation as a backward compatibility mechanism, to give each long file name a unique 8.3 short file name, too.

Not the answer you're looking for? Browse other questions tagged .