Click to See Complete Forum and Search --> : How to how to convert 8.3 path into long file name?


nii000
August 21st, 2011, 03:02 AM
I'd like to do this via batch, because it elimination compilation requirement, and is simple. Batch should always work, while vbscript might have issues (on my pc). So what's the best way to do this, considering the compilation and maintenance resources?

PeejAvery
August 23rd, 2011, 09:02 AM
From where are you getting these short names?

If you only have a list of short names, then there is no way to convert since you don't know what the 9th+ characters are going to be.

nii000
August 25th, 2011, 01:25 AM
I can do this by opening the path in explorer, so it automatically converts to a long path. However, I need a cmd line tool.

PeejAvery
August 25th, 2011, 02:09 PM
So you're asking how to get the command line to give long format instead of short? Perhaps you should look at this (http://www.m2ktech.com/techtips/techtips_longfilenames.htm).

nii000
August 26th, 2011, 05:02 PM
I read that, but it doesn't offer any relevant suggestions. Perhaps I ought to attempt to clarify my goal: to convert any given 8.3 path into long file name.
The batch could look like this:
set 8.3path=%1
... conversion code
echo "%long_path%"