Forum Moderators: phranque
i.e. If I have filenames in the form of:
thisfileisnotinthecorrectformat.xxx
thisnameistoolong.xxxx etc
I would like to convert them to something like
thisfile.xxx
thisname.xxx
or
thisfil1.xxx
thisfil2.xxx
etc
I have about 200 files to convert.
Would appreciate any advice.
Steve
Do a Google search for +getshortpathname +utility and you may find something.
By the way, 255 characters are allocated for long filenames. These are actually stored by Windows. When you convert from long to short, you lose information.
To avoid duplicates, the ~1, ~2, ~3 system is used. Once you convert from long to short, you can't go back unless you do it manually (if you've done a "hard convert").
But if you do a convert within the context of a single Windows installation, and are just accessing the short names for convenience without a hard rename, then you're merely accessing a long filename by its short handle, and nothing has been converted.