Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: current user desktop shortcut?

13 Jun 2019   #1
patrickdrd

windows 7 ultimate x64
 
 
current user desktop shortcut?

I'm trying to create a shortcut on my desktop to access the currently logged on's user's desktop,
but nothing works,
neither:

Code:
C:\Users\%USERPROFILE%\Desktop
Code:
%USERPROFILE%\Desktop
works but shows all desktop items,

I just want it to show the items in:
Code:
C:\Users\myuser\Desktop
of course I don't want "myuser" hardcoded,
is there a workaround?


My System SpecsSystem Spec
.
13 Jun 2019   #2
Brink

64-bit Windows 10 Pro
 
 

Hello Partrick, and welcome to Seven Forums.

%USERPROFILE%\Desktop would be what you wanted to use for a global shortcut of the current user's Desktop folder.

It should only show all items in the current user's Desktop folder. What is showing you don't want?
My System SpecsSystem Spec
13 Jun 2019   #3
patrickdrd

windows 7 ultimate x64
 
 

thanks for the warm welcome :)

well, it is showing all items,
both user's and public's items,

that happens only on my windows 7 computer,
I've got a windows 10 one and it is working fine there,

I can't understand why it doesn't work in windows 7
My System SpecsSystem Spec
.

13 Jun 2019   #4
Brink

64-bit Windows 10 Pro
 
 

Ah, I see now.

That wouldn't be the "C:\Users\Public\Desktop" folder included.

It would be the Desktop shell folder showing instead to show all items.

I'm not sure why it does this in Windows 7, but not in Windows 10.

I was going to suggest using this below instead, but it opens the same Desktop shell folder.

C:\Users\%UserName%\Desktop

I checked in Environmental Variables, but it's the same in both W7 and W10 for them.
My System SpecsSystem Spec
13 Jun 2019   #5
townsbg

Windows 7 pro 64-bit sp 1
 
 

From the command prompt type in the following command. Please post the results.
Code:
echo %UserProfile%
My System SpecsSystem Spec
14 Jun 2019   #6
patrickdrd

windows 7 ultimate x64
 
 

this works properly, I mean it returns

c:\users\patrickdrd

but when I do %userprofile%\desktop I am redirected to the shell,
strange, the same thing happens on my windows 8.1 x64 laptop as well,
I have applied some registry tweaks too,
could it be related to any of them?
My System SpecsSystem Spec
14 Jun 2019   #7
Brink

64-bit Windows 10 Pro
 
 

I wouldn't think so.

It also opens the Desktop shell folder on my clean install of W7 in a VM.
My System SpecsSystem Spec
.
14 Jun 2019   #8
patrickdrd

windows 7 ultimate x64
 
 

strange, so it works on windows 10 only?

I even tried c:\users\%username%\desktop and it doesn't work either,

because my users folder is %username%.domain
My System SpecsSystem Spec
14 Jun 2019   #9
Brink

64-bit Windows 10 Pro
 
 

Appears so. For some reason the variable is linked to the shell folder instead of actual folder in W7 and W8.
My System SpecsSystem Spec
Reply

 current user desktop shortcut?




Thread Tools




Similar help and support threads
Thread Forum
How do I add Registry entry under HKEY_USERS\ for the current user
Hi, How can I add a registry entry under HKEY_USERS for the current user? I already have the registry entry imported from my account, but my problem is it won't work with other accounts because we have different SID for HKEY_USERS. Please help me on this. Thanks!
General Discussion
Custom 'Desktop (create shortcut)' Remove .fileextension - Shortcut
Hi guys n girls, I have for ever got sick and tired of right click -> open Send to Menu and creating a Desktop Shortcut for a file or app....then needing to go to the Desktop right click the newly made shortcut and then removing the trailing file extension, dash and words shortcut in brackets....
Customization
shortcut missing in user desktop
a same shortcut has been missed from all user desktop.we are using windows 7 pro 32 bit. we are using windows server 2000. how can i restore that shortcut for users please help me:cry:
General Discussion
Question on wow6432node for the Current User?
Hi, I was attempting to fix up some unnecessary registry when I accidentally deleted HKEY_CURRENT_USER/Software/wow6432node (my pinky slipped onto the delete key). I tried researching this on my own, but everyone that did this seemed to have issues using programs after doing this; however,...
General Discussion
Remapping keyboard for current user only
Hi, I'm not sure if this is the right forum but "customizations" is the closest thing topic I can think of for my problem. I used to use the scancode map registry key to remap my ctrl/caps lock/esc key in Windows XP. I was able to do this system wide or just for a particular user...
Customization


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 14:10.
Twitter Facebook