Windows 9x - The long and short of it

Here's the scoop: every time you give a file a name longer than 11 characters (8 characters to the left of the full stop, plus the three-character file-type extension to the right), Windows generates a short 8.3 version of the file name (eight characters plus the three-letter extension) so that the name will remain compatible with older applications.

Windows removes spaces and other illegal characters, and if the original name has more than 8 characters to the left of the dot, Windows replaces all the characters after the first six with a tilde (~) and a number. For example, a file named 'Flower Power Data.xls' also has a short file name: 'FLOWER~1.XLS'.

You can see these short names by opening the DOS prompt, navigating to a folder, typing dir, and pressing to view a list of folder contents. The short DOS-like names are on the left, and the normal, long Windows names are on the right.

Unfortunately, when many applications make copies of files, they create these short names anew rather than copying the existing short names. So if, for example, you have a folder containing three files named document1.doc, document2.doc, and document3.doc, the short names stored for these files are DOCUME~1.DOC, DOCUME~2.DOC, and DOCUME~3.DOC.

If you delete document1.doc and use Explorer or xcopy to back up document2.doc and document3.doc to another folder, the new name generated for document3.doc is DOCUME~1.DOC. This means the short name DOCUME~1.DOC could point to document1.doc in one folder and to document3.doc in another folder.

If you back up only data files and you always use Windows programs that are savvy about long file names, chances are you won't have a problem, since those applications won't ever refer to the potentially mixed-up short names. But system files are another story. In many cases, Windows' Registry stores the path to files using their short names.

To see this, choose Start-Run, type regedit, and press . In the Registry Editor, select Edit-Find, type ~ and press . You'll have no trouble finding files and folders that use short names. As a result, it's possible for program and system file names that have been copied and restored to stop functioning because the Registry is using the wrong short form.

The best solution is to make sure you use a backup program that copies the existing short file name along with the long file name; Symantec's Norton Ghost and Norton Ghost 2001 both do this.

For batch-file or simple command-line copying, I like Pixelab's Xxcopy, which at the time of this writing is still freeware. Xxcopy uses the same DOS commands that xcopy does. It preserves short file names, and it has a few other bells and whistles that make it a convenient backup utility. You can download it from our cover CD or from its creator's Web page at www.xxcopy.com.

Join the newsletter!

Or

Sign up to gain exclusive access to email subscriptions, event invitations, competitions, giveaways, and much more.

Membership is free, and your security and privacy remain protected. View our privacy policy before signing up.

Error: Please check your email address.
Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Scott Dunn

PC World
Show Comments

Brand Post

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

Luke Hill

MSI GT75 TITAN

I need power and lots of it. As a Front End Web developer anything less just won’t cut it which is why the MSI GT75 is an outstanding laptop for me. It’s a sleek and futuristic looking, high quality, beast that has a touch of sci-fi flare about it.

Emily Tyson

MSI GE63 Raider

If you’re looking to invest in your next work horse laptop for work or home use, you can’t go wrong with the MSI GE63.

Laura Johnston

MSI GS65 Stealth Thin

If you can afford the price tag, it is well worth the money. It out performs any other laptop I have tried for gaming, and the transportable design and incredible display also make it ideal for work.

Andrew Teoh

Brother MFC-L9570CDW Multifunction Printer

Touch screen visibility and operation was great and easy to navigate. Each menu and sub-menu was in an understandable order and category

Louise Coady

Brother MFC-L9570CDW Multifunction Printer

The printer was convenient, produced clear and vibrant images and was very easy to use

Edwina Hargreaves

WD My Cloud Home

I would recommend this device for families and small businesses who want one safe place to store all their important digital content and a way to easily share it with friends, family, business partners, or customers.

Featured Content

Product Launch Showcase

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?