MKLINK – Create and Use Links in Windows

Page 16 of 16 FirstFirst ... 6141516

  1. Posts : 72,052
    64-bit Windows 11 Pro for Workstations
       #150

    When you went to open the elevated command prompt, did you get a UAC prompt to approve?

    I suppose go ahead and post a screenshot of the command prompt to see if anything may stand out.
      My Computer


  2. Posts : 4
    Windows 10 64bit
       #151

    oh wait, it says C:\Users\Peter... but my properties menu looks like this, there is no such option like mentioned here Elevated Command Prompt
    Attached Thumbnails Attached Thumbnails -eingabe.png  
    Last edited by Peter Wodrich; 01 Dec 2018 at 15:07. Reason: spelling
      My Computer


  3. Posts : 72,052
    64-bit Windows 11 Pro for Workstations
       #152

    Ah, ok. Yep, that wouldn't be an elevated command prompt.
      My Computer


  4. Posts : 2
    Windows 7 Ultimate 32 bit
       #153

    I'm having an issue with symbolic links showing up where I'd like to see them.



    I create the links with statements like this in a bat file:

    rmdir link-Files
    mklink /d link-Files C:\data\stuff


    I execute the bat file and the link(s) are created. It does work, somewhat. I can see the link named link-Files in "My Documents". But, I can't see the links at the root of the C:\ drive. I've tried executing the bat file in various places but it doesn't seem to make a difference as to where they get defined.



    Am I missing some conceptual piece in here? Aren't these system level links? Shouldn't they be available in Explorer at the C:\ or Desktop level... or more specifically, everywhere? Is there some execution technique I need to make them appear more globally? If I have to hunt down to c:\users\me\My Documents then they defeat the purpose.
      My Computer


  5. Posts : 54
    Win7 Pro x64 SP1
       #154

    Very quick comment to make sure this tutorial stays "live" ...


    Had never run across mklink before but directing my Outlook (IMAP) pst files to my data drive using the /j qualifier worked great.



    Thanx for clear/concise explanation.
      My Computer


  6. Posts : 9
    Windows 7 Ultimate x64
       #155

    This was really informative, thank Kari.
      My Computer


  7. Posts : 10
    10 Pro
       #156

    seems to be working Sort of


    created a link from the itunes default backup folder >"Q:\Apple Backups

    I used

    mklink /J "C:\Users\keith\AppData\Roaming\Apple Computer\MobileSync\Backup" "Q:\Apple Backups"

    Didn't realize that Apple Computer AND Apple locations are in fact the same thing `Mirror each other `

    mklink /J "C:\Users\keith\Apple\MobileSync\Backup" "Q:\Apple Backups"



    I got the message "Junction created" both times

    BUT Itunes is still saving the backup file to the BOTH default folder PLUS my new backup location

    Any thoughts please ?

    Many thanks
    Last edited by reddwarf4ever; 10 Dec 2021 at 15:54. Reason: update
      My Computer


  8. Posts : 0
    Windows 7 Ultimate x64
       #157

    I just use Link Shell Extension Link Shell Extension
      My Computer


  9. Posts : 396
    Windows 7/8.1/10 multiboot
       #158

    reddwarf4ever said:
    I got the message "Junction created" both times
    BUT Itunes is still saving the backup file to the BOTH default folder PLUS my new backup location

    Any thoughts please ?
    How are you determining the files are being duplicated? I wonder if you may be misinterpreting what you think you're seeing.

    If you look in the directory on your C: drive it will appear that the files are stored there, but they're not actually there, they're on the Q: drive as was specified by your link command. If you look at either of the two C:...Backups folders File Explorer will list files there, but that's because the junction makes File Explorer follow the tree across to Q:. It will show the files on Q:, even though it says they're on C:. (That's precisely the purpose of the junction feature.)

    You can also look in File Explorer at the icons for the two C:...Backups folders. Do they have the tiny shortcut arrows over the icon's lower left corner? If so, there are actually no files there, they're being stored in the shortcut or junction location, not where File Explorer is pretending they are.

    You can also do a dir listing from a command prompt window, which may help more clearly show where they're actually pointing to. For instance, I've done something similar with my Music folder, and a dir listing shows, in part:
    Code:
    12/03/2016  05:16 PM    <DIR>          Public Desktop
    10/08/2019  12:25 AM    <DIR>          Public Documents
    12/03/2016  10:40 PM    <DIR>          Public Downloads
    10/08/2019  01:56 PM    <JUNCTION>     Public Movies [f:\movies]
    10/08/2019  01:54 PM    <JUNCTION>     Public Music [f:\music]
    12/03/2016  12:29 PM    <DIR>          Public Pictures
    12/03/2016  12:29 AM    <DIR>          Public Videos

    And lastly, right click and select Properties of the C: drive icon and compare the drive's used space both before and after creating the junction. There shouldn't be any change, which should help you convince yourself there are no actual "duplicate" files being added to C:.


    Caveat emptor:

    On a similar note, beware if you use programs to backup your C: drive. Some backup programs will follow the junction tree and include your Q: locations in the backup of the C: drive. That can potentially create an impossibly large backup wherein it ends up backing up more data than the C: drive can possibly hold. Just be aware that junctions can mess with backup strategies.
      My Computer


 
Page 16 of 16 FirstFirst ... 6141516

  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 16:30.
Find Us