For all you command-line hackers. I need to be able to convert a long file name to a short one at command line.
Example:
D:\My User Name\My Documents\IM Archives\archive1.txt
to
D:\MyUser~1\MyDocu~1\IMArch~1\archiv~1.txt
I tried using rundll32 to call windows api but was unsuccessful.
Can anyone help?
2007-03-26
00:45:08
·
2 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Software
Here are a few details in response to Kevins answer:
* I need to do this only for one file.
* I need this for use in config file of a software that does not support long names :-(
* dir /x doesnt work for me. I know the location of the file i am trying to find a short name for. I simply want to convert it to a short name for use with a config file which i am constructing on the fly before invoking the software.
thanks in advance..
2007-03-28
12:25:48 ·
update #1