- or download this
DWORD GetShortPathName(
LPCTSTR lpszLongPath, // null-terminated path string
LPTSTR lpszShortPath, // short form buffer
DWORD cchBuffer // size of short form buffer
);
- or download this
use Win32::API;
...
$shortname = substr($shortname,0,$retval);
print "longname = \n\"$longname\", \nshortname = \n\"$shortname\"";
- or download this
C:\temp>perl shortname.pl
longname =
...
shortname =
"C:\PROGRA~1\MICROS~3\Office\OLREAD9.TXT"
C:\temp>