Expands environment variable strings and replaces them with their defined values
#include <WinAPISys.au3>
_WinAPI_ExpandEnvironmentStrings ( $sString )
$sString | String to convert for environment variables |
Success: | Converted string |
Failure: | Set the @error flag to non-zero, call _WinAPI_GetLastError() to get extended error information |
Search ExpandEnvironmentStrings in MSDN Library.
#include <MsgBoxConstants.au3>
#include <WinAPISys.au3>
MsgBox($MB_SYSTEMMODAL, "Environment string", "%windir% = " & _WinAPI_ExpandEnvironmentStrings("%windir%"))