To get a full path of a file,
Add the Path field value to an environment variable based on the Location field value.
Full path of a file
Location value |
Environment variables |
---|---|
Desktop |
%PUBLIC%\desktop %USERPROFILE%\desktop |
Downloads |
%PUBLIC%\downloads %USERPROFILE%\downloads %windir%\downloaded installations |
Drive |
A hard drive letter |
InternetCache |
%USERPROFILE%\local settings\temporary internet files |
ProgramData |
%ProgramData% |
ProgramFiles |
%ProgramFiles% %ProgramFiles(x86)% %ProgramW6432% |
ProgramFilesCommon |
%CommonProgramFiles% %CommonProgramFiles(x86)% %CommonProgramW6432% |
RecycleBinFolder |
%SystemDrive%\$Recycle.Bin\%SID% |
RoamingAppData |
%USERPROFILE%\appdata\roaming |
Startup |
%APPDATA%\microsoft\windows\start menu\programs\startup %ALLUSERSPROFILE%\microsoft\windows\start menu\programs\startup %ALLUSERSPROFILE%\start menu\programs\startup |
System |
%SystemRoot% |
Windows® |
%windir% |