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

ITS ALL ABOUT AUTOMATION

Thursday, 21 July 2016

AutoIt - Get Current User's Home Directory


Author Post Date Thursday, 21 July 2016
We need to use two macros to get the full path of current user's home directory.

@HomeDrive -Returns the drive letter of drive containing current user's home directory.
@HomePath - Returns the directory part of current user's home directory.

Example:

#include <MsgBoxConstants.au3>

;Display Current User's Home Directory
MsgBox($MB_SYSTEMMODAL, "Home Directory", @HomeDrive & @HomePath)

Related Posts




Interesting? Share and Let Others Know.

Post a comment