Macro Name: @CommonFilesDir
Returns the Path to Common Files folder.
This will return the path through 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 through Program Files folder when OS Architecture and Application Architecture (x86 or x64) is same.
Example:
Returns the Path to Common Files folder.
This will return the path through 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 through Program Files folder when OS Architecture and Application Architecture (x86 or x64) is same.
Example:
#include <MsgBoxConstants.au3>
;Display Common Files Folder Path
MsgBox($MB_SYSTEMMODAL, "Common Files Folder", @CommonFilesDir)
;Display Common Files Folder Path
MsgBox($MB_SYSTEMMODAL, "Common Files Folder", @CommonFilesDir)
- AutoIt - Get Current User's Home Directory
- AutoIt - Get Program 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