@SFN[filename]:  Returns the fully expanded short ("8.3") filename for a long filename. The filename may contain any valid filename element including drive letter, path, filename and extension. The entire name including all intermediate paths will be returned in short name format. If filename does not refer to an actual file, the results are unpredictable.

 

Example:

 

echo %@sfn[%comspec]

C:\PROGRA~1\JPSoft\TCMD31~1\TCC.EXE