Macro Name: @SystemDir
Returns the Path to Windows' System (system32 or SysWOW64) folder.
This will return the path to SysWOW64 folder in a 64 Bit PC, when executing the EXE built using 32 Bit configuration or when running the script in 32 Bit Autoit Installation.
And the path to system32 folder when OS Architecture and Application Architecture (x86 or x64) is same.
Got confused with 64 Bit Windows' system folder names? - Refer Understanding 64 Bit Windows System Folders - system32 and SysWOW64.
Example:
Returns the Path to Windows' System (system32 or SysWOW64) folder.
This will return the path to SysWOW64 folder in a 64 Bit PC, when executing the EXE built using 32 Bit configuration or when running the script in 32 Bit Autoit Installation.
And the path to system32 folder when OS Architecture and Application Architecture (x86 or x64) is same.
Got confused with 64 Bit Windows' system folder names? - Refer Understanding 64 Bit Windows System Folders - system32 and SysWOW64.
Example:
#include <MsgBoxConstants.au3>
;Display system Folder Path
MsgBox($MB_SYSTEMMODAL, "System Folder", @SystemDir)
;Display system Folder Path
MsgBox($MB_SYSTEMMODAL, "System Folder", @SystemDir)
- Understanding 64 Bit Windows System Folders - system32 and SysWOW64
- AutoIt - Get Current User's Home Directory
- AutoIt - Get Program Files Folder Path
- AutoIt - Get Common Files Folder Path
- AutoIt - Get Windows Folder Path
- AutoIt - Get Temporary Files Folder (Temp Folder) Path
Interesting? Share and Let Others Know.
Post a Comment