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. |
#include <MsgBoxConstants.au3>
;Display Current User's Home Directory
MsgBox($MB_SYSTEMMODAL, "Home Directory", @HomeDrive & @HomePath)
;Display Current User's Home Directory
MsgBox($MB_SYSTEMMODAL, "Home Directory", @HomeDrive & @HomePath)
- AutoIt - Get Server and Share Name Containing Current User's Home Directory
- AutoIt - Get My Documents Folder
- AutoIt - Get Current User Desktop Folder Path
- AutoIt - Get User Profile Folder Path for Current User
- AutoIt - Get Current User Roaming AppData Folder Path
- AutoIt - Get Current User Local AppData Folder Path
- AutoIt - Get Current User Favorites Folder Path
- AutoIt - Get Current User Start Menu Programs Folder Path
- AutoIt - Get Current User Start Menu Folder Path
- AutoIt - Get Current User Startup Folder Path
- AutoIt - Get Documents Folder Path for 'All Users'
- AutoIt - Get Desktop Folder Path for 'All Users'
- AutoIt - Get AppData Folder Path for 'All Users'
- AutoIt - Get Favorites Folder Path for 'All Users'
- AutoIt - Get Start Menu's Programs Folder Path for 'All Users'
- AutoIt - Get Start Menu Folder Path for 'All Users'
- AutoIt - Get Startup Folder Path for 'All Users'
Interesting? Share and Let Others Know.
Post a Comment