LATEST UPDATES
ShareHolder Finder v0.9.3 is now released!!! Check Product Page for more details.
✉ info@automationdevelopers.com

ITS ALL ABOUT AUTOMATION

Monday, 25 July 2016

AutoIt - Get Windows' System (system32 or SysWOW64) Folder Path


Author Post Date Monday, 25 July 2016
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:

#include <MsgBoxConstants.au3>

;Display system Folder Path
MsgBox($MB_SYSTEMMODAL, "System Folder", @SystemDir)

Related Posts




Interesting? Share and Let Others Know.

Post a Comment