Windows 10: a percentage sign shortcut to user desktop? eg. %USERPROFILE% or %SYSTEMROOT%

Discus and support a percentage sign shortcut to user desktop? eg. %USERPROFILE% or %SYSTEMROOT% in Windows 10 Network and Sharing to solve the problem; So, I have been writing a short batch script to distribute and execute on multiple Windows 10 computers with desktop file location located differently.... Discussion in 'Windows 10 Network and Sharing' started by [Adam] Wind_Explorer, Aug 17, 2021.

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


    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

    :)
     
    [Adam] Wind_Explorer, Aug 17, 2021
    #1

  2. Desktop Shortcut Icons

    Hi Mik-Dav,

    The desktop shortcut created for a specific website should bear the website's actual logo. With what you've experienced, there could be something wrong with how the shortcut was created.

    If you've created the shortcut by selecting Create shortcut, then we suggest that you try the other way, that is by dragging the website icon that appears in the address bar to your desktop. Follow these steps:

    • Using Internet Explorer, access a website.
    • Once the website opens, you will see its icon in the address bar.
    • Click and drag the icon on your desktop.

    The website shortcut bearing its actual logo should now be saved on your desktop.

    Let us know if you need further help.

    Regards.
     
    Vanessa Yar, Aug 17, 2021
    #2
  3. What is %UserProfile% called? IS there a list of such shortcuts?

    Hello Broaln,

    This is called a variable. %userprofile% points to your userprofile, something like: c:\users\broaln

    Basically there are user variables and system variables. User variables apply to the current user and system variables are globally for all users and the system.

    To see them form the graphical interface you have to go to the control panel or the settings depending on your Windows version but I belive this link works on all Windows:

    You open the run command (WINDOWS + R) type in this:

    rundll32.exe sysdm.cpl,EditEnvironmentVariables

    and press ENTER

    To see a list of variables form the command prompt:

    Open a command prompt, type:

    set

    and press ENTER

    To point to the folder you are currently in you can use a dot, period (.). For example if you are in the command prompt and you want to open File Explorer in the directory you are currently in you could use this:

    explorer.exe .

    If you only want to list the current directory you can use the command: CD

    If you want to use a variable in a commad, address bar or the command prompt you should always use the variable inside of porcentage signs (%) to indicate to Windows that you want to use a variable.

    ex:

    %windir%

    %userprofile%

    %programfiles%
     
    Ricardo Bohner, Aug 17, 2021
    #3
  4. DaveM121 Win User

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

    Desktop Shortcut Key

    Hi Larry,

    Right click your Desktop, choose new Shortcut

    In the location box, type explorer.exe and click next

    Name that shortcut 'This PC' and click Finish

    Does that shortcut work for you?

    If say you wanted a shortcut to just your documents folder the location should be set to:

    %userprofile%\Documents

    If you wanted a shortcut to your User Folder, the location should be set to:

    %userprofile%
     
    DaveM121, Aug 17, 2021
    #4
Thema:

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

Loading...
  1. a percentage sign shortcut to user desktop? eg. %USERPROFILE% or %SYSTEMROOT% - Similar Threads - percentage sign shortcut

  2. Userprofile folder not showing

    in Windows 10 Software and Apps
    Userprofile folder not showing: Hello Plz help my username folder "91882" not showing in user folder but when i give path c:\users\91882 its there all files is there why its not showing in users folder i turn on hidden folders and and drives but still not accessible this problem happened when i change...
  3. %userprofile%\Links folder no longer creating auto shortcuts

    in Windows 10 Customization
    %userprofile%\Links folder no longer creating auto shortcuts: I am using windows 10 pro Winver 2004. I noticed that when I originally dragged any folder or file into the %userprofile%\Links folder it automatically made it a shortcut. I inadvertently renamed the "Link" folder say something like "MyLinks" then I noticed when I dragged...
  4. My desktop and other dirs are changed as eg; OneDrive/desktop

    in Windows 10 Network and Sharing
    My desktop and other dirs are changed as eg; OneDrive/desktop: FIRST POST IN 2021! If you don't understand its ok, but the issue is that windows 10 for me is thinking that the directory to the desktopalso for documents, pictures...etc. is actually my OneDrive backup and it is hard follow tutorials on different stuff related to folders,...
  5. My %userprofile% is missing from Users Folder

    in Windows 10 Network and Sharing
    My %userprofile% is missing from Users Folder: I can access my user profile in the address link, but could not find it in my Users. It is supposed to be in C:\Users How can I retrieve back to visible in the Users folder. I have tried checking the hidden items, but still not able to find it....
  6. Desktop Shortcuts

    in Windows 10 Customization
    Desktop Shortcuts: Somehow, when I increased the size of my Windows 10 PC text, all of my desktop shortcuts are underlined. Can you tell me how to remove the underlines? I tried the adviser's solution, which was to go to ease of access, click keyboard. I see that my "keyboard underlines across"...
  7. %userprofile% is wrong

    in Windows 10 Customization
    %userprofile% is wrong: After changing my username from Jerol to Jerold using netplwiz on Windows 10, and frebooting, %username% is Jerold BUT other environment variables, like userprofile, still use Jerol. How do I fix this?...
  8. What is %UserProfile% called? IS there a list of such shortcuts?

    in Windows 10 Network and Sharing
    What is %UserProfile% called? IS there a list of such shortcuts?: What are these shortcuts called and where can I find a list of existing ones? More to the point, is there one for pointing to the folder you are currently in?...
  9. Desktop shortcuts

    in Windows 10 Customization
    Desktop shortcuts: Recently all my desktop shortcuts have an overlay. A white sheet of paper. I have tried the Thumbnail and Cache Rebuilder, but it did nothing. What can I do? https://answers.microsoft.com/en-us/windows/forum/all/desktop-shortcuts/e0376408-1405-4ba7-9240-ee9d06766731
  10. Shortcuts appearing on all users desktops

    in Windows 10 Support
    Shortcuts appearing on all users desktops: Hello all, I've just bought a new computer with Win 10 installed of course *Smile I have the main user account as admin and I've set up two other user accounts for my kids, without admin. Whenever I install a new application a shortcut for that application gets...