Solved

Old-Style Path Reference

Posted on 2008-10-03
6
406 Views
Last Modified: 2008-10-04
I was talking to a gentleman with Lexis Nexis support yesterday, and we came across what he referred to as an "old style path."  It contained tildes "~".  He also said that there were character limits.  Will someone provide me with the "old style path" rules?  In other words, how do you convert a standard path, like the following into an old style path.

C:\Program Files\FileZilla Client\filezilla.exe
0
Comment
Question by:jdana
6 Comments
 
LVL 20

Expert Comment

by:Dufo G. Belski
Comment Utility
I'm not sure what you are trying to do, but try enclosing the path in quotation marks, i.e., "C:\Program Files\FileZilla Client\filezilla.exe".
0
 
LVL 5

Accepted Solution

by:
MattRichardson earned 63 total points
Comment Utility
8.3 is the filename rule

The eighth character in the string "filename" becomes a tilde "~"

C:\Program Files\FileZilla Client\filezilla.exe
c:\Program~\Filezil~\filezil~.exe

a better explaination can be found here: http://en.wikipedia.org/wiki/8.3_filename
0
 
LVL 59

Assisted Solution

by:LeeTutor
LeeTutor earned 63 total points
Comment Utility
He is referring to the old DOS pathname convention, or short file name with 8.3 format, meaning there are up to 8 characters in the file name proper, followed by up to 3 in the file name extension  (in filename.ext, "filename" is the file name, and "ext" is the file name extension.)  There cannot be spaces in a short file name.  Take a look at this article, especially rule number 3 in the section called "Overview":

http://en.wikipedia.org/wiki/8.3_filename
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 1

Assisted Solution

by:roorks
roorks earned 62 total points
Comment Utility
The old style path was when windows was still running on top of DOS with its 8.3 file name structure.  When windows recognized a long name, it would keep the first 6 character and replace the rest with the tilde character and a number.  This change is stored in a mini database on the drive, and if successive files came up with the same name after truncation, it would update the number.
In your example "C:\Program Files\FileZilla Client\filezilla.exe" would look like "C:\Progra~1\filezi~1\filezi~1.exe"
However, to answer your question, the file system would convert it on the drive, and display it normally in a Windows environment.  You converting a path would only be for reference.
0
 
LVL 20

Assisted Solution

by:Dufo G. Belski
Dufo G. Belski earned 62 total points
Comment Utility
Well, Matt, that's wrong about the 8th character becoming a tilde, as demonstrated by your own link:
"If the filename contains characters not allowed in an 8.3 name (including space which was disallowed by convention though not by the APIs) or either part is too long, the name is stripped of invalid characters such as spaces and extra periods. Other characters such as (+) are changed to the underscore (_), and uppercased. The stripped name is then truncated to the first 6 letters of its basename, followed by a tilde, followed by a single digit, followed by the first 3 characters of the extension. Example: "TextFile1.Mine.txt" becomes "TEXTFI~1.TXT" (or "TEXTFI~2.TXT", should "TEXTFI~1.TXT" already exist). "ver +1.2.text" becomes "VER_12~1.TEX".
However, enclosing the path in quotations if you want to use it in, say, a batch file, works in Win NT , 2000, and XP, at least.  I don't know about Vista.


0
 
LVL 5

Expert Comment

by:MattRichardson
Comment Utility
Sorry for the quick answer, but the reference is solid!
0

Featured Post

Promote certifications in your email signature

Has your company recently won an award or achieved a certification? They'll no doubt want to show it off. Email signature images used to promote certifications & awards can instantly establish credibility with a recipient and provide you with numerous benefits.

Join & Write a Comment

Several part series to implement Internet Explorer 11 Enterprise Mode
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now