|
Summary: 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:
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:
is really an 8.3 representation of this path:
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 "~". Related:
Article 10905 | Posted November 10, 2006 |
Popular & Hot How do I make a new MSN Hotmail account? How do I delete history items from my Google tool bar? My desktop Recycle Bin has disappeared - why, and how do I get it back? I accidentally deleted my Recycle Bin in Vista - how do I get it back? New & Important How can I get the old Windows Live Hotmail back? Internet Safety: How do I keep my computer safe on the internet? Are free email services worth it? Would you please recover my password? My account has been hacked or I've forgotten it.
Stay Informed Archives Advertisers |
•
2 days ago Ad Aware found I had a Win.32 Trojan Downloader on my PC, AVG anti virus did not show it. I decided to see if I could find the source of this Trojan, and why it didn't show on AVG.
Posted by: Pete at November 11, 2006 1:02 AMYes, you guessed it, the trojan was in a file in C:\DOCUME~1.
Eventually I gave up looking for the Trojan, and deleted it with Ad Aware. I did all the usual, cleaned out my machine, then checked to ensure my machine was clear.
I did find the source of the Trojan, my grandson was swapping photos with a friend, and the Trojan was sitting in a .zip file on my desktop.
How do I find Program.exe. Many of my emails with graphics say they cannot open because they cannot find Program.exe. I can find it either. Where is it? Thanks
Posted by: Catherine at November 11, 2006 6:01 PMits documents and settings on local disk.
Posted by: dsa at March 20, 2007 3:43 PMThe reason you can't delete C:\Docume~1 is because it's a system folder. It's the folder that user accounts are stored: C:\Documents and Settings\
Posted by: Nicos Kasenides at July 16, 2007 12:15 AMWindows XP sometimes addresses it as Docume~1 to avoid the spaces in the file name.
I have a 'C:\DOCUME~1 issue myself. I swear its nowhere to be found.
I downloaded a document from my email--proposal 25
and forgot this when I saved and closed word.
So I opened the desktop version and realized it did not have the modified changes from 1/21, so in File box is saw proposal 25 saved with the path C:\DOCUME~ ...proposal 25. I found this blog, read the article and have searched my own local disk and done computer file searches, but it only finds my original desktop version. I modified the dates just for 1/21 and no document shows up. I didn't not save the desktop version when I opened it either, in case I could recover yesterday's file. Now I am desperate, any advice?
Posted by: Mark at January 22, 2008 9:22 AMalright so i had this keylogger program on my computer and it says it cannont be found. well i uninstalled it and everytime my cp starts up it say mpk.exe cannont run at this time and it gives me send error report and ect. i clicked on send error report and it says it cant because all of the sending information is 000000. so i clicked on technical support and it gave me the name of this file:
C:\DOCUME~1\Heff\LOCALS~1\Temp\44be_appcompat.txt
the 44be_ is nowhere in the folder. how can i get this messege to stop when i start up? Could this file be showing the messege?
Posted by: Jeremy at February 27, 2008 8:11 PMThis is a very good article, very well written and easy to understand. Thanks
Posted by: Andrew at July 25, 2008 1:17 PMThanks a bunch!
Very well written and understood everything
Thanks again leo!
Posted by: Adrian at September 19, 2008 3:49 PMC:\DOCUME~1\MyName\LOCALS~1\Temp and C:\PROGRA~1\
Posted by: k.basinger at October 1, 2008 9:36 AMi do not agree that they are the same as C:\Documents and Settings\MyName\Local Settings\Temp
and c:\programs\ in the registry they are listed both ways and they are not related