Function Reference


FileGetLongName

Returns the long path+name of the path+name passed.

FileGetLongName ( "filename" [, flag = 0] )

Parameters

filename Full path and file name to convert
flag [optional]
    $FN_FULLPATH (0) - Default
    $FN_RELATIVEPATH (1) - file can have relative dir, e.g. "..\file.txt"

Constants are defined in FileConstants.au3.

Return Value

Success: the long path+name of the path+name passed.
Failure: the parameter and sets the @error flag to 1.

Related

FileGetShortName

Example

#include <MsgBoxConstants.au3>

Example()

Func Example()
        ; Create a constant variable in Local scope of the filepath to retrieve the longname of.
        Local Const $sFilePath = @HomeDrive & "\PROGRA~1" ; Generally this is the same as @ProgramFilesDir.

        ; Display the long path+name of the program files directory.
        MsgBox($MB_SYSTEMMODAL, "", FileGetLongName($sFilePath))
EndFunc   ;==>Example