Windows 10: Moving "Special Folders" and the USERPROFILE variable

Discus and support Moving "Special Folders" and the USERPROFILE variable in Windows 10 Support to solve the problem; On a laptop running Windows 10 Home I tried moving the special folder "Videos" to another location, by clicking on the folder's Location tab in... Discussion in 'Windows 10 Support' started by Samizdat, May 28, 2016.

  1. Samizdat Win User

    Moving "Special Folders" and the USERPROFILE variable


    On a laptop running Windows 10 Home I tried moving the special folder "Videos" to another location, by clicking on the folder's Location tab in Properties, and using the Move button. It appeared to work fine, but I noticed one odd thing: Before the relocation, if I typed the following at a command prompt:

    cd %USERPROFILE%\Videos

    Explorer would open to the Videos folder. If I run the same command now, it tells me "the system cannot find the path specified." Of course this is because %USERPROFILE% still points to its original location under C:\Users\[username].

    1. Is this behavior involving the environment variable normal?

    2. If so, how do programs know where to store videos if Windows can't find %USERPROFILE%\Videos?

    Background: I'm trying to figure this out because I'm trying to diagnose a problem on a desktop machine which I just upgraded from Win 7 Pro to Win 10 Pro. I am seeing duplicate special folders under my username. I assume this has something to do with the fact that in the past I had relocated them to a different drive. I know I could try to get rid of the duplicates by restoring them to their default location and then moving them again, but first I want to understand what's going on with the environment variables.

    Thanks!

    :)
     
    Samizdat, May 28, 2016
    #1

  2. Cannot add more pictures to existing theme.

    Which part? "%localappdata%" is just an environment variable, much like "%userprofile%". By referring to those values instead of something like "c:\users\zach\", programmers and scripters can more easily move their software between systems. Moving "Special Folders" and the USERPROFILE variable :)
     
    zachd [MSFT], May 28, 2016
    #2
  3. Lumia " The Future is Here "

    This is a support forum, not a complaints department.

    I suggest you directly submit your complaints about hardware to Nokia and software to Microsoft.



    Also it often helps to read reviews when switching platforms to make sure it suits your needs. From what you've said the Lumia 820 clearly doesn't suit you.
     
    psychomania---01, May 28, 2016
    #3
  4. Samizdat Win User

    Moving "Special Folders" and the USERPROFILE variable

    FOLLOW-UP: I see that the values stored in:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

    indicate the new locations of special folders after I move them. Is this the (only?) way Windows knows, for example, where "My Video" is located? How would one get to it from a command line?

    What's weird is that on my desktop machine I have two "Documents" folders under my username, each of which has a Location tab, even though only the "moved" folder is listed here in the registry. Why does windows think the folder in its original location is a "special folder?"

    General question: Once you move a special folder to a new location (using the Move button) shouldn't the folder no longer exist at it's original location? Or does Windows keep around a hidden copy for some compatibility reason?
     
    Samizdat, May 28, 2016
    #4
  5. Take a read on this: CLSID Key (GUID) Shortcuts List for Windows 10

    and the related tutorials

    Complete List of Windows 10 Shell Commands
    Complete List of Environment Variables in Windows 10
    I ran into similar issues when I did what you did, tried the Win10 save location in Settings ... but eventually decided to just move my entire profile to a different partition.
    See: User Profile - Change Default Location - Windows 7 Help Forums

    When you're done, double check the environment variables
    Command Prompt
    set
    REM if things look good, then
    REM exit
     
    Slartybart, May 28, 2016
    #5
  6. Samizdat Win User
    Thanks. I think I've resolved it. I switched all the special folders back to their default locations, and then switched them back to the location where I want them on another drive. (I temporarily emptied them all first so the moves would be instantaneous.) Now I see only one of each kind of special folder.

    And the CLSID Key (GUID) shortcuts all seem to work: if I create a new shortcut using each of those keys, it opens the correct folder. So I think I'm good to go.

     
    Samizdat, Apr 4, 2018
    #6
Thema:

Moving "Special Folders" and the USERPROFILE variable

Loading...
  1. Moving "Special Folders" and the USERPROFILE variable - Similar Threads - Moving Special Folders

  2. Onedrive: Moved Documents folder still in userprofile

    in Windows 10 Network and Sharing
    Onedrive: Moved Documents folder still in userprofile: I have synched my Documents folder via OneDrive, which is situated on my D:\ drive.But it is still shown in my %USERPROFILE%.opening the folder via Userprofile, the file properties place the files in my D:\OneDrive\Documents\but I need to remove the documents folder since I...
  3. Onedrive: Moved Documents folder still in userprofile

    in Windows 10 Gaming
    Onedrive: Moved Documents folder still in userprofile: I have synched my Documents folder via OneDrive, which is situated on my D:\ drive.But it is still shown in my %USERPROFILE%.opening the folder via Userprofile, the file properties place the files in my D:\OneDrive\Documents\but I need to remove the documents folder since I...
  4. Onedrive: Moved Documents folder still in userprofile

    in Windows 10 Software and Apps
    Onedrive: Moved Documents folder still in userprofile: I have synched my Documents folder via OneDrive, which is situated on my D:\ drive.But it is still shown in my %USERPROFILE%.opening the folder via Userprofile, the file properties place the files in my D:\OneDrive\Documents\but I need to remove the documents folder since I...
  5. 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...
  6. Userprofile folder not showing

    in Windows 10 Gaming
    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...
  7. Icons for special folders are not shown

    in Windows 10 Software and Apps
    Icons for special folders are not shown: I recently updated 2 laptops to Win11 and one of them has issues with icons for special folders. And not even for all of them.Here's how it's supposed to look like taken from laptop without the issue:Here's how it looks on the "faulty" one:As you can see icons for 3D Objects,...
  8. Windows folder in userprofile folder

    in Windows 10 Support
    Windows folder in userprofile folder: As the title says. I don't know how and when it happened but I've got a Windows folder in my userprofile folder and I have never seen anything like this before *sarc What it's doing there? It's the same Windows folder as the one located at C: (both have the same size) and...
  9. 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....
  10. %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?...