$lfn function
$lfn(path)
The $lfn function returns the Long File Name version of the passed-in path, which is usually the same as the original path unless path is in SFN (Short File Name) format. If path is empty or refers to a non-existing file or folder, the result is an empty string. The function can be used for both folder and file paths.
Parameters
All parameters may contain symbolic references; these are resolved before the function is applied. See Examples below.
- path
- File or folder path to convert to LFN format.
Examples
Here are some usage examples for this function:
- <$lfn(C:\PROGRA~1\TARMAI~1\Bin\Tin.exe)>
- Returns C:\Program Files\InstallMate\Bin\Tin.exe from the literal SFN path.
- <$lfn(<INSTALLDIR>\Bin\Tin.exe)>
- Returns C:\Program Files\InstallMate\Bin\Tin.exe from the symbolic path, assuming that <INSTALLDIR> resolves to the appropriate folder path.
- <$lfn(<#Tin_alias>)>
- Returns C:\Program Files\InstallMate\Bin\Tin.exe from the file alias path, assuming that Tin_alias is the file alias for the Tin.exe executable.