Some junction became visible


  1. Posts : 6
    windows 7 home premium 64bit
       #1

    Some junction became visible


    How do I hide the "My Documents" junction (and "My Pictures" etc. in "Documents" folder)? I think the four junctions became visible after I unzipped a 7-zip file containing the "My Documents" folder created in an XP machine. The junctions are now visible regardless of the "hide system files" etc. settings in explorer. The four junctions are also listed when I "dir" in cmd.exe. No other junctions are visible in either explorer or cmd.exe.

    I can't see any option to hide a junction when I right-click -> Properties on it. How do I do this, i.e. get them back the way they were initially?
      My Computer


  2. Posts : 1,808
    Windows 7 64b Ultimate
       #2

    Hello Jruhill, welcome!

    I'm not sure what you mean by "junction". Sounds like you've copied/extracted directories out of a zipfile, possibly with subdir's too. If that's the case, assuming you did not need the dir's on this machine, can't you just delete these dir's?
    However, if you're unsure, then please upload a snip/picture of a explorer window of your "My Documents" with Detail settings on. We'll have a look at that.
      My Computer


  3. Posts : 71,977
    64-bit Windows 11 Pro for Workstations
       #3

    Hello Jruhill, and welcome to Seven Forums.

    You might check using step 3 in the tutorial below to select (dot) the Don't Show hidden files, folders, and drives box to see if that may hide them again for you. :)

    Hidden Files and Folders - Show or Hide

    Hope this helps,
    Shawn
      My Computer


  4. Posts : 6
    windows 7 home premium 64bit
    Thread Starter
       #4

    Thanks, but your suggestions didn't help. I eventually resolved it by (in cmd.exe):

    Code:
    attrib -r +h +s +i /L "My Documents"
      My Computer


  5. Posts : 71,977
    64-bit Windows 11 Pro for Workstations
       #5

    That's great news Jruhill. I'm happy to hear that you got it sorted. :)
      My Computer


  6. Posts : 1,808
    Windows 7 64b Ultimate
       #6

    jruhill said:
    Thanks, but your suggestions didn't help. I eventually resolved it by (in cmd.exe):

    Code:
    attrib -r +h +s +i /L "My Documents"
    Help me out here... I don't get it yet... Why would you want that on a My Documents?
    Just to not show? Or should it not have been there in the first place?
      My Computer


  7. Posts : 6
    windows 7 home premium 64bit
    Thread Starter
       #7

    Windows 7 (and Vista I guess) changed the directory structure of Windows XP. In Windows 7, "My Documents" is merely a link (called junction actually) to the "Documents" folder. Similarly, "Documents/My Music" is a junction to the "Music" folder (under c:\Users\me\). The same goes for Pictures and Videos.

    I think Windows 7 does the junction thing for compatibility reasons. It was also good for me, because when I restored my XP "My Documents" folders, my files got automatically placed in the correct Win7 folders. Well, except that 7-zip also mucked with the attributes of the junctions, making them visible. The attrib command merely restores the attributes back to what they were (the switch /L is important, otherwise the command hits the folder the junction links to.)
      My Computer


  8. Posts : 1,326
    Windows 7 Ultimate RTM (Technet)
       #8

    It isn't supposed to be hidden, but if that's what you want.....oh well.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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 02:50.
Find Us