@ALTNAME

Print Topic  Return to Overview  Previous Topic  Next Topic 

@ALTNAME[filename] :  Returns the alternate (short, "8.3" FAT-format) name for the specified file. If the filename is already in 8.3 format, returns the filename. If the file does not exist, returns an empty string. If filename contains a \, @ALTNAME returns the SFN of the full path.

 

Examples:

 

echo %@altname["Long Name.exe"]

echo %@altname["C:\Program Files\Microsoft Office"]

echo %@altname["%CommonProgramFiles"]

Topic "f_altname.htm" last edited 8/31/2006. ©2008  JP Software, Inc.
Keywords: @ALTNAME,SFN