File_GetShortPath
Description
Section titled “Description”Gets short path value for specified file in the 8.3 format
Syntax
Section titled “Syntax”File_GetShortPath(sFileName) As Boolean
Parameters
Section titled “Parameters”sFileName (String)
Section titled “sFileName (String)”Filename. The function works on files only, not on folders.
Return value
Section titled “Return value”Result will be stored in gsValue. The function returns False if the file doesn’t exist.
Example
Section titled “Example”If bStatus Then bStatus = File_GetShortPath(gsProgramFiles & "\CapaInstaller\Agent\CIAgent.exe")If bStatus Then bStatus = Job_Writelog("Custom", "Short path for specified file is: " & gsValue, bStatus, True)Related functions
Section titled “Related functions”File_GetFileDateCreated File_GetVersion Constants Package Property Variables