Helping people with computers... one answer at a time.

Error messages frequently include filenames of the form 'DOCUME~1' which seem nowhere to be found. They're actually there, just by another name.

One of the error messages I received recently refereed me to a file in the path:

C:\DOCUME~1\MyName\LOCALS~1\Temp

Yet, when I go looking in Windows Explorer, I see nothing like that anywhere. What's up?

In a word: backwards compatibility.

OK, that's two words.

What you're seeing is the result of a legacy that dates back to Window's predecessor, MS-DOS.

That path is there - it's just called something else.

Without trying to sound like the old computer fogey that I actually am, "back in the day" MS-DOS only supported filenames that were at most 8 characters long, followed by an "extension" of up to 3 characters, and could not include certain characters like spaces. Colloquially it's often refereed to as 8.3 or eight-dot-three, and one valid example might be "explorer.exe".

At this point I need to address all the other old computer fogeys out there ready to call me out. I know it actually predates MS-DOS, and that it's not so much a function of the operating system as it is the file system. Fortunately those details are actually irrelevant to people attempting to deal with this issue today.

Now, that was all well and good for a long time. However, other operating systems, such as Unix, allowed you to have file names of much longer length. That meant it was quite valid under Unix even then to have filenames like "A Picture of My Dog.jpg" - longer than 8 characters, and including spaces.

Not so under MS-DOS - or even early versions of Windows. Another example is "iexplore.exe" - it's maxed out at 8.3, but would probably have been better named "iexplorer.exe" since it's Internet Explorer, but that's too long. In order to remain within that older 8.3 limitation, it was simply truncated and we're left with "iexplore.exe".

Eventually Microsoft added "Long Filename support" often noted as "LFN".

"Windows will "make up" a filename for files which are longer than the old 8.3 limit..."

The problem, though, was that a massive amount of software existed that assumed filenames would never be any bigger than 8.3. Now, one could simply define that those old programs wouldn't be able to access LFNs, or one could come up with some kind of a hack.

You can guess which option was chosen.

Those filenames you're seeing are the result of that hack.

Windows will "make up" a filename for files which are longer than the old 8.3 limit for use by programs that only understand 8.3. It does so by taking the first part of the filename, chopping off a couple of characters at the end, and appending a tilde (~) followed by a number. The number is chosen simply to ensure that the resulting filename is unique within that folder.

So what you're seeing:

C:\DOCUME~1\MyName\LOCALS~1\Temp

is really an 8.3 representation of this path:

C:\Documents and Settings\MyName\Local Settings\Temp

which you will find on your hard disk.

So why, after all this time, are programs still reporting filenames using the old 8.3 filename hack? Well, many programs have been around for a long time. One of the most common culprits I see are setup programs, which once created, are often themselves not updated other than to reflect changes in the programs that they're installing. The result is that some setup programs often leave traces of the 8.3 naming convention behind after they're done, in configuration files and in the registry. Those filenames are perfectly valid for any program to still use, and often end up showing up in error messages, as you've seen.

What can you do about it? Pretty much nothing. Just know that when you're looking for names that have "~" followed by a number the end, you're probably really looking for a longer, more descriptive name that starts with the same the same characters before the "~".

Article C2835 - November 10, 2006 « »

Share this article with your friends:

Share this article on Facebook Tweet this article Email a link to this article
Leo Leo A. Notenboom has been playing with computers since he was required to take a programming class in 1976. An 18 year career as a programmer at Microsoft soon followed. After "retiring" in 2001, Leo started Ask Leo! in 2003 as a place for answers to common computer and technical questions. More about Leo.

Not what you needed?

Recent Comments
16 Comments
Velimir
November 23, 2009 3:40 AM

I have similar problem.When I have downloaded something my anti-virus avast! has give me warning about virus in c:\DOCUME~1\my name\APPLIC~1\DRVROA~1\Proxyskip.exe When I tried to find this Proxyskip.exe it couldn't be found.Any ideas?

dlp
November 26, 2009 11:25 AM

LEO!!!!!!!!!!! You rock, thanks.Gives me a BLUESCREEN and a crash. Any hope there. Years ago went to locals and got rid of same but this on persistent.

Any help????????????

Al Avenoso
January 26, 2010 10:48 AM

I had a so-stated "Serious Error" report listing 2 files of this very same type {C:\DOCUME~1\MyName\LOCALS~1\Temp\WER2644.DIR00\mINI012210-01.dmp AND ANOTHER VERY SIMILAR FILE NOTATION}, and immediately causing my system to re-boot when i installed a new Pioneer DVR Drive on my PC. The computer has functioned normally since, but I have been reluctant to try the new DVR, as this was a replacement for a new Pioneer DVR drive which spun the disc in the drive so hard that it ended yo in at least 100 pieces. Can you tell me please

Curious
April 18, 2011 2:51 PM

Try this. Make two Compressed (Zipped) folders. Put one inside the other. Then open the first one containing the second one. When you open the second one you will see this path:

C:\DOCUME~1\*Name*\LOCALS~1\Temp\Temporary Directory 2 for *Name of Compressed (zipped) Folder.zip*\*Name of Compressed (zipped) Folder (2).zip.*

Now look at all of the folders in C: and you will notice that, at the bottom, a new folder has appeared: Docume~1.

Can you tell me anything about this? It is exactly the same as C:\Documents and Settings but it appeares in a different spot on my disk now. Also, whatever folder I make in C:\Docume~1 shows up on C:\Documents and Settings. Any reason why this folder pops up?

john walne
February 25, 2013 5:48 AM

Hi Leo! I have done a command scan to see if there are any corrupt files on my pc & it turned up one known as: C:\Windows\Logs\CBS

I have opened the file and it is very recent & there are a lot of .cab files in the folder. However, I don't know what CBS is & I have not downloaded any software of that name. Is it safe to delete these files please?