Macro Name: @ProgramFilesDir
Returns the Path to Program Files folder.
This will return the path to Program Files (x86) 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 Program Files folder when OS Architecture and Application Architecture (x86 or x64) is same.
Example:
Returns the Path to Program Files folder.
This will return the path to Program Files (x86) 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 Program Files folder when OS Architecture and Application Architecture (x86 or x64) is same.
Example:
#include <MsgBoxConstants.au3>
;Display Program Files Folder Path
MsgBox($MB_SYSTEMMODAL, "Program Files Folder", @ProgramFilesDir)
;Display Program Files Folder Path
MsgBox($MB_SYSTEMMODAL, "Program Files Folder", @ProgramFilesDir)
- AutoIt - Get Current User's Home Directory
- AutoIt - Get Common Files Folder Path
- AutoIt - Get Windows Folder Path
- AutoIt - Get Temporary Files Folder (Temp Folder) Path
- AutoIt - Get Windows' System (system32 or SysWOW64) Folder Path
Interesting? Share and Let Others Know.
Post a Comment