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 Program Files Folder Path


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

#include <MsgBoxConstants.au3>

;Display Program Files Folder Path
MsgBox($MB_SYSTEMMODAL, "Program Files Folder", @ProgramFilesDir)

Related Posts




Interesting? Share and Let Others Know.

Post a Comment