Solved

Old-Style Path Reference

Posted on 2008-10-03
6
409 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
ID: 22632894
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
ID: 22632896
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
ID: 22632914
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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 1

Assisted Solution

by:roorks
roorks earned 62 total points
ID: 22632941
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
ID: 22632947
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
ID: 22632989
Sorry for the quick answer, but the reference is solid!
0

Featured Post

Free book by J.Peter Bruzzese, Microsoft MVP

Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

947 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

18 Experts available now in Live!

Get 1:1 Help Now