Retrieves the final path of the specified file.
#Include <WinAPIEx.au3>
_WinAPI_GetFinalPathNameByHandle ( $hFile )
$hFile | Handle to a file or directory whose path is to be retrieved. |
Success | The path of the file. |
Failure | Empty string and sets the @error flag to non-zero, @extended flag may contain the NTSTATUS code. |
在MSDN中搜索
#Include <WinAPIEx.au3>
Opt('MustDeclareVars', 1)
Global $hFile
$hFile = _WinAPI_CreateFile(@ScriptFullPath, 2, 0, 6)
ConsoleWrite(_WinAPI_GetFinalPathNameByHandle($hFile) & @CR)
_WinAPI_CloseHandle($hFile)