A complete list of %% relative paths variables in Windows Explorer in . . . Variables like %appdata%, %userprofile%, %windir% etc In my search, most of them point to KNOWNFOLDERID or the older CSIDL, but I don't know how to exactly apply them in Windows paths or File Explorer, and most of them doesn't work in the File Explorer in my tests
Why cant I use %USERPROFILE% in %PATH%? - Super User USERPROFILE might still not be set, though, so you might need to hard-code the path into your user variable, but at least it won't affect other users on the computer
windows 7 - Change to home directory in PowerShell - Super User At the cmd command prompt, this command will take me to my home directory: cd %UserProfile% At the PowerShell command prompt, the same command produces this error: Set-Location : Cannot find path
Windows 11: %USERPROFILE% not being expanded in environment variable This means that the program is run as administrator, and that means that the %userprofile% variable is the default: c:\Windows\system32 In your example it gives c:\windows\system32\config\systemprofile which would be an indication that the program is not just started as administrator, but the SYSTEM user even
Hyperlink to a file using the current user For example: C:\Users\{current_user}\test txt I found %USERPROFILE% but this does not work A bit of background info Everyone has access to our SharePoint 365, however, in procedures, I would like to be able to hyperlink to folders in the SharePoint that they already have access to which would then open the file or file explorer