Renaming File in File Explorer

Page 1 of 2 12 LastLast

  1. Posts : 15
    W10
       #1

    Renaming File in File Explorer


    this is external USB drive when renamed Documents file after sync
    File explorer shows new name AsusDocuments210724

    Renaming File in File Explorer-file-expl.png
    but when checked in command prompt it is still showing old name

    Renaming File in File Explorer-cmd.png
    i'm puzzled.
      My Computer

  2. Try3's Avatar
    Posts : 9,429
    Windows 10 Home x64 Version 21H2 Build 19044.1288
       #2

    Pawel,

    That's a folder not a file.

    There is such a thing as a Display name for user folders.

    That's not a topic I have dealt with myself but, just to illustrate the point, enable showing hidden & system files in File explorer Options then look in that folder & open its desktop.ini file in NotePad. You will probably find the name in your first diagram in the entry
    LocalizedResourceName
    within desktop.ini. I don't know if simply deleting or changing that entry is a viable solution so I suggest searching the forum for folder display name before taking any action.

    Some other forum members do have knowledge of this topic, such as the excellent KeithM, so one of them might post in this thread to help you.

    Best of luck,
    Denis



    Welcome to TenForums.

    It's really worth making time to browse through the Tutorial index - there's a shortcut to it at the top of every page.
    - At the foot of the Tutorial index is a shortcut to download it as a spreadsheet.
    - I download a new copy each month so I can benefit from Excel's filtering capabilities when I search for topics of interest.
    - Tutorials are also listed by category at Tutorials - there's also a shortcut to that at the top of every page.
    - Both tutorial pages are searchable.
    - You can also search for TenForumsTutorials in many general search engines, such as Google, by adding site:tenforums.com/tutorials after your search term. For example,
    taskbar toolbars site:tenforums.com/tutorials

    - And note that you can also search TenForums threads [rather than just searching tutorials] in many general search engines, such as Google, by adding site:tenforums.com after your search term. For example,
    Search for drivers by HardwareID site:tenforums.com
    [This is what the search box in the top-right corner of TenForums webpages does automatically]
      My Computer

  3. KeithM's Avatar
    Posts : 923
    Microsoft Windows 10 Home
       #3

    Most likely, it a display name applied by a desktop.ini file in the folder. From the Command Prompt, if you navigate into the directory and then execute dir /a desktop.ini, the file will be listed:

    Code:
    C:\Users\keith\Documents>dir /a desktop.ini
     Volume in drive C is Windows
     Volume Serial Number is F057-590D
    
     Directory of C:\Users\keith\Documents
    
    03/26/2021  08:55 AM               256 desktop.ini
                   1 File(s)            256 bytes
                   0 Dir(s)  603,960,754,176 bytes free
    If you execute notepad desktop.ini from that directory, you'll see content simialar to:

    Code:
    [.ShellClassInfo]
    LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21770
    IconResource=%SystemRoot%\system32\imageres.dll,-112
    IconFile=%SystemRoot%\system32\shell32.dll
    IconIndex=-235
    This file shows a resource reference to a string in a dll, but it can also be a literal string.

    When a folder has a LocalizedResourceName specified, normal renaming methods in the UI will modify the value in the desktop.ini file and leave the underlying directory name in the file system unchanged.


    You can rename the directory from the command prompt, but you may have software/devices that expect to find that path, so you'd want to track those down so you can sync the name changes.
      My Computer

  4. Try3's Avatar
    Posts : 9,429
    Windows 10 Home x64 Version 21H2 Build 19044.1288
       #4

    Unlike Keith, I never thought to include an example. This is the start of the desktop.ini file from my Desktop folder
    Code:
    [.ShellClassInfo]
    LocalizedResourceName=Desktop
    IconResource=%SystemRoot%\system32\imageres.dll,-184

    Denis
      My Computer


  5. Posts : 15
    W10
    Thread Starter
       #5

    Thanks guys.
    I have one more question.
    If i get rid of junctions in Documents folder will it hurt me in the future?
    P.
      My Computer

  6. KeithM's Avatar
    Posts : 923
    Microsoft Windows 10 Home
       #6

    PawelC said:
    Thanks guys.
    I have one more question.
    If i get rid of junctions in Documents folder will it hurt me in the future?
    P.
    Are you talking about the My Music/Pictures/VIdeos junctions for legacy applications?
      My Computer



  7. Posts : 15
    W10
    Thread Starter
       #7

    Yes.
    When backup was tricked into copying few hundred GB more than expected
    First thought was do i need these at all?
      My Computer

  8. KeithM's Avatar
    Posts : 923
    Microsoft Windows 10 Home
       #8

    PawelC said:
    Yes.
    When backup was tricked into copying few hundred GB more than expected
    First thought was do i need these at all?
    Most likely you don't. Those junctions, along with those found at the root of the system drive, allow software that expects the old 95/98(???) system paths. And while you get an access denied message if you try to view the folder, examining the permissions shows that it can be traversed, so if you type c:\Documents and Settings\<UserProfileFolder> will open your profile folder, and this:

    C:\Documents and Settings\Keith\My Documents\My Music\Abba

    takes me to the Abba sub-folder of my Music folder.

    So, while interesting, I've never heard of anyone who actually needed them!

    So you should be fine deleting them if you can. Not sure if they're one of those things that get re-created with updates or other "healing" processes.

    If you can't delete them or they get re-created, you should be able to modfy permissions to deny your backup program all access.
      My Computer


  9. Posts : 15
    W10
    Thread Starter
       #9

    Thanks Keith
    Something like reptilian brain.
    I'll remove this relic of the ancient past.
    Regards,
    P.
      My Computer

  10. KeithM's Avatar
    Posts : 923
    Microsoft Windows 10 Home
       #10

    PawelC said:
    Thanks Keith
    Something like reptilian brain.
    I'll remove this relic of the ancient past.
    Regards,
    P.
    Such a dismissive attitude towards the cutting edge technologies of yesteryear!!!

    And I was going to gift you my collection of ASCII art on 3.5" diskettes --- your loss!!!


    You're welcome!
      My Computer


 
Page 1 of 2 12 LastLast

  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 13:56.
Find Us




Windows 10 Forums