MKLINK – Create and Use Links in Windows

Page 6 of 16 FirstFirst ... 45678 ... LastLast

  1. Posts : 17,545
    Windows 10 Pro x64 EN-GB
    Thread Starter
       #50

    blumesan said:
    Many thanks for your reply. I am a bit confused:
    ...
    ...
    About your original question, it will be messy and I cannot guarantee the outcome but as some files cannot be copied when they are used by the system, the only option as far as I can see it is to boot PC with a so called Live CD (a Linux Live CD or a WinPE disk) and then copy the files.

    I read your posts again and I must say I would never do what you are thinking to do; doing this with MKLINK involves too much risks and might cause an unstable OS. That's of course only my very subjective opinion, the Live CD method should work and get you one step further in this.

    About using the method I told you in an upgrade or repair installed system, here's a workaround, works like a charm. You just "lie" to Windows, tell it that contrary to what it thinks it has never been upgraded or repaired . Here's how:

       Information

    Open the Registry Editor (WIN + R, type regedit, hit Enter), browse to key HKEY_LOCAL_MACHINE\SYSTEM\Setup

    Delete both the DWORD Upgrade (right pane) and KEY Upgrade (left pane), see screenshot. The system warns you that skies can fall down if you delete these items, just laugh loud and accept the deletion:
    -7861d1415046982-users-folder-move-location-windows-10-7387d1414118859t-esd-iso-create-bootable.png
    Still in Registry Editor, browse to key HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus, if either DWORD CleanupState or DWORD GeneralizationState has any other value than 7, change it to 7 by double clicking the DWORD in question and entering the new value:
    -7862d1415047084-users-folder-move-location-windows-10-7388d1414118861t-esd-iso-create-bootable.png
    Close the Registry Editor. Open Command Prompt, type slmgr /dli and hit Enter to open Software License Manager. Close it as soon as it opens, close Command Prompt.

    Now you can sysprep, Windows thinks it has never been upgraded or sysprepped.


    Kari
      My Computer


  2. Posts : 88
    Win 7 x64
       #51

    Kari,
    Many thanks for your reply and for taking the time to help me out.
    After rethinking the issue I have come up with a simpler solution which may work.

    First migrate the system partition as it exists to the SSD. This should not be a problem because the current C:\ partition is only 120GB and the SSD is 250GB. After this is done I can simply move the largest sub-folders in the Users folder to a new folder created on an internal HDD. Then I can create a link (junction) on the SSD using the name of the moved sub-folder (Link) and the moved subfolder on the HDD as the target.

    How does this sound?

    P.S. What happens when one creates a Link to a Target folder containing several sub-folders? Does a reference to the Link gain access to all the sub-folders?
      My Computer


  3. Posts : 17,545
    Windows 10 Pro x64 EN-GB
    Thread Starter
       #52

    blumesan said:
    How does this sound?
    Sounds good, should work.

    blumesan said:
    P.S. What happens when one creates a Link to a Target folder containing several sub-folders? Does a reference to the Link gain access to all the sub-folders?
    Yes.
      My Computer


  4. Posts : 10,455
    Microsoft Windows 7 Home Premium 64-bit Service Pack 1
       #53

    Instead of MKLINK you might also consider including the migrated folders in appropriate libraries. That's what I do.
      My Computer


  5. Posts : 17,545
    Windows 10 Pro x64 EN-GB
    Thread Starter
       #54

    This is also a viable alternative: User Folders - Change Default Location
      My Computer


  6. Posts : 88
    Win 7 x64
       #55

    Kari said:
    This is also a viable alternative: User Folders - Change Default Location
    I did consider this alternative, however I discovered that some of the folders in my user folder (e.g. AppData) do not have a "location" tab when you examine properties.

    Once again, much thanks for your help.
      My Computer


  7. Posts : 17,545
    Windows 10 Pro x64 EN-GB
    Thread Starter
       #56

    To get AppData and even ProgramData folders to another drive, you really need the sysprep method. It is the only method to completely relocate Users (and ProgramData) which works without issues, fail safe.
      My Computer


  8. Posts : 88
    Win 7 x64
       #57

    Kari,

    You have been a great help; thank you.
    A check of my User profile shows that full half of the space is occupied by folders that can easily be relocated using the procedure you reference. The AppData and Programs can stay where they are.
      My Computer


  9. Posts : 2
    Windows 7 Ultimate x64
       #58

    Very good tutorial! Even though I am an advanced PC user, I always had a hard time understanding the difference between Links/Junctions etc. This one is nice!!!
    Thanks for it!
      My Computer


  10. Posts : 1
    Winows 7 Ultimate
       #59

    FYI this also worked for Windows 8, but it appears it causes issues with updates:
    Windows 8.1 Update Error 80070026 - Microsoft Community
      My Computer


 
Page 6 of 16 FirstFirst ... 45678 ... LastLast

  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 15:04.
Find Us