a percentage sign shortcut to user desktop? (eg. %USERPROFILE% or %SYSTEMROOT%)

  • Thread starter [Adam] Wind_Explorer
  • Start date
A

[Adam] Wind_Explorer

So, I have been writing a short batch script to distribute and execute on multiple Windows 10 computers with desktop file location located differently. I cannot just insert my current desktop directory into the script and expect it to work on other machines as the directory includes username ("C:\Users\user_A\Desktop" and "C:\Users\user_B\Desktop" or even custom directories like "D:\MyFiles\Desktop") that varies depending on the machine. So is there a built-in "function" (eg. %userprofile% to go to the user's folder or %systemroot% to go to the Windows f

Continue reading...
 
Back
Top Bottom