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

ITS ALL ABOUT AUTOMATION

Sunday, 24 July 2016

AutoIt - Get Common Files Folder Path


Author Post Date Sunday, 24 July 2016
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:

#include <MsgBoxConstants.au3>

;Display Common Files Folder Path
MsgBox($MB_SYSTEMMODAL, "Common Files Folder", @CommonFilesDir)

Related Posts




Interesting? Share and Let Others Know.

Post a Comment