how Windows works with these Users Personal Folders ?


  1. Posts : 16
    64 bits Windows 10 home
       #1

    how Windows works with these Users Personal Folders ?


    Hi there,
    I've been searching but I can't find a solution to my problem. Let me explain to you :)

    It's a long story about folders, french names and english names... Here are screenshots from my computer (french). To explain my problem, I will use the example of the Music folder. The french name is Musique. I am on 1607.

    1. Initial situation (everything is fine) :
    Here is a view of the user folder :
    how Windows works with these Users Personal Folders ?-situation-initiale.png
    The path of the Musique folder : how Windows works with these Users Personal Folders ?-capture.png
    And the "real path" of the Musique folder : how Windows works with these Users Personal Folders ?-renommer-chemin-reel.png

    2. Now, I try to change names to see what happens :
    I use the "Rename" function from the context menu. The result :
    how Windows works with these Users Personal Folders ?-renommer.png
    how Windows works with these Users Personal Folders ?-renommer-chemin.png
    how Windows works with these Users Personal Folders ?-renommer-chemin-reel.png
    As expected, the real path doesn't change, just the displayed path.
    So there are two names for this kind of folders :
    - the displayed name (Musique)
    - the real name (Music)

    3. Here comes cmd :
    Great. We go back to normal and we copy a file (C:\testfile.txt) in the music folder.
    how Windows works with these Users Personal Folders ?-copie.png
    I use the real name because %UserProfile%\Musique\ doesn't exist !

    The result :
    how Windows works with these Users Personal Folders ?-vue-apres-copie.png
    how Windows works with these Users Personal Folders ?-chemin-apres-copie.png
    how Windows works with these Users Personal Folders ?-chemin-reel-apres-copie.png
    Gasp ! Where is my sweet displayed name ? And the music icon ?
    Moreover, the link in "Quick access" and "This computer" is dead.

    4. A solution :
    OK... OK... I'm going to fix it... Right click, properties... Yes ! A "location" tab.
    how Windows works with these Users Personal Folders ?-proprietes.png
    So I change the location to C:\Users\Govi\Music, then OK, validate etc. And...
    Everything is back to normal !

    5. Not satisfied :
    Okay so I can come back to normal by creating again a Music folder and by doing a redirection from Musique to Music. What a boring stuff..! Can't I do it via command lines ?

    So, I copy my file : how Windows works with these Users Personal Folders ?-copie.png
    Then I try to rename the folder : how Windows works with these Users Personal Folders ?-renommer-cmd.png
    The result :
    how Windows works with these Users Personal Folders ?-vue-apres-renommer-cmd.png
    how Windows works with these Users Personal Folders ?-chemin-apres-renommer-cmd.png
    how Windows works with these Users Personal Folders ?-chemin-reel-apres-renommer-cmd.png
    Nooooo. Of course it hasn't worked... And I created a new "Musique" folder, but not a User Personal Folder : a standard folder. Indeed, there is no more the "Location" tab in properties :
    how Windows works with these Users Personal Folders ?-proprietes-apres-renommer-cmd.png

    6. My question :
    Can anyone help me to understand how Windows works with theese Users Personal Folders ? And how can I manipulate them (without breaking them !) with command lines or registry tweaks ?

    Thank you for reading my story, and thank you for your help ! :)

    Govi
    Last edited by Govi59; 30 Nov 2016 at 09:27.
      My Computer


  2. Posts : 16
    64 bits Windows 10 home
    Thread Starter
       #2

    Hey,
    I think the solution is near... I searched and I found a hidden system file in the Music folder : desktop.ini
    (we can have access to it with cmd. The attrib command shows the file is an archive (A), system (S) and hidden (H) file.
    how Windows works with these Users Personal Folders ?-capture.png

    And this is what there is inside this desktop.ini file :
    [.ShellClassInfo]
    LocalizedResourceName=@%SystemRoot%\system32\windows.storage.dll,-21790
    InfoTip=@%SystemRoot%\system32\shell32.dll,-12689
    IconResource=%SystemRoot%\system32\imageres.dll,-108
    IconFile=%SystemRoot%\system32\shell32.dll
    IconIndex=-237


    The thing is I don't know well how DLLs work...

    [Edit: I've just tried again to copy with cmd (part 3). As expected, the displayed name changes, the real name remains, but the desktop.ini file is exactly the same. So I guess this file doesn't control the displayed name.]
      My Computer


  3. Posts : 17,661
    Windows 10 Pro
       #3

    Govi59 said:
    I think the solution is near...
    Core of Windows is always in English. Whatever language your Windows is, the system files and folders, native Windows applications and libraries always have English names.

    What File Explorer shows when you open your user folder is not folders. They are links to folders, these links using localized names. Musique you will see in your user folder in File Explorer, Musiikki in my Finnish Windows or Musik in Swedish Windows are just localized, translated links (kind of shortcuts) to folder Music.

    The same with all user folders. Your French Windows shows a link Bureau in File Explorer, my Finnish Windows shows the same link named as Työpöytä, a German user sees that link named as Arbeitsplatz. All them are links to a folder Desktop.

    This is of course as it should be. It would simply be too much to translate all of Windows, when this simple solution works: the core of Windows, its folder names, native application names, libraries and so on all have English names. The GUI, user interface like File Explorer then uses localized, translated names as links to offer a user experience in user's own language. Keeping the actual file, folder, application and library names same in all language versions of Windows is there to make Windows easier to use for you in French or for me in Finnish.

    An example: Let's say a media player app searches playable music files in %userprofile%\Music folder by default. If this folder would have a different name in French, the makers of said application would need to add code to make the app search music in %userprofile%\Music and %userprofile%\Musique folders. If the app would also be made available in Swedish market, they would need add code to make app search music in %userprofile%\Music, %userprofile%\Musique and %userprofile%\Musik folders.

    For each country and Windows language, an individual setting would be needed. That would be both extremely stupid and impractical.

    The same with for instance folder Program Files. In all language versions of Windows the folder name is in English. When I install a program, the coders only need to define install location as C:\Program Files, regardless of the language of my Windows. It would be plain stupid if installer would need to know the localized name of that folder in every language. The program will be installed in Program Files folder, yet when I open File Explorer in my Finnish Windows it shows me that it's in Ohjelmatiedostot which is the localized, translated link to Program Files folder shown to me.

    This applies to all native Windows applications, too. In Swedish Windows I can search for an application Anteckningar, or in Finnish Windows application Muistio. These both are just localized links to an application with an English name notepad.exe in all language versions of Windows. Using localized links to these apps a user can search and see them in Start in his / her local language.

    You should never change names of Windows system files and folders, nor should you change names of the localized names (links).

    Kari
    Last edited by Kari; 07 Dec 2016 at 08:34. Reason: Some bad typos fixed
      My Computer


  4. Posts : 16
    64 bits Windows 10 home
    Thread Starter
       #4

    Hi Kari,
    thank you for your (large !) answer.

    Actually, I already know what you are talking about and that's what I say in my first post :
    Govi59 said:
    As expected, the real path doesn't change, just the displayed path.
    My question is not about "Why Windows is in English ?" but more about the manipulation with command lines and registry tweaks : when I do number 3 (using xcopy in cmd), the displayed name changes, and this is my problem !

    To summarize :
    - I want to copy something to the user personal folder with command lines
    - The displayed name of the user personal folder changes
    - If I rename it manually (context menu > rename), the displayed name changes correctly
    - If I rename it with command lines, the real name changes. And I don't want it ! The only way I've found to fix it is to change the location of the user personal folder by re-creating a user personal folder with the original English name.

    Thank you !

    Govi
      My Computer


  5. Posts : 16
    64 bits Windows 10 home
    Thread Starter
       #5

    Bump!
    I'm still looking for a solution to manipulate with cmd theese folders...
      My Computer


  6. Posts : 17,661
    Windows 10 Pro
       #6

    The solution is of course to use correct command syntax.

    By default Xcopy resets file and folder attributes. Adding switch /K to Xcopy command, those attributes will be kept.

    This command would reset the name and shortcut of the link %userprofile%\Musique, setting the name to Music and changing the link's custom icon to a generic folder icon:

    Code:
    xcopy X:Music\*.* %userprofile%\Music

    This command would not reset the name and shortcut of the link %userprofile%\Musique, keeping the link's localized name Musique and its original icon:

    Code:
    xcopy X:Music\*.* %userprofile%\Music /K

    Kari
      My Computer


  7. Posts : 16
    64 bits Windows 10 home
    Thread Starter
       #7

    Kari said:
    Adding switch /K to Xcopy command, those attributes will be kept.
    Oh thank you so much Kari ! It works perfectly.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:54.
Find Us




Windows 10 Forums