Returns the 8.3 short path+name of the path+name passed.
FileGetShortName ( "file" [, flag] )
| file | full path and file name to convert |
| flag | [optional] if 1 file can have relative dir, e.g. "..\file.txt" |
| Success: | Returns the 8.3 short path+name of the path+name passed. |
| Failure: | Returns the parameter and sets @error to 1. |
Local $sShortName = FileGetShortName(@HomeDrive & "\Program Files")
MsgBox(0, "FileGetShortName", $sShortName) ; Generally this is C:\PROGRA~1.