MKLINK – Create and Use Links in Windows

Page 4 of 16 FirstFirst ... 2345614 ... LastLast

  1. Posts : 112
    Windows 7 Ultimate x64
       #30

    I'm using makelink with a Classic Shell toolbar. I'd like to make it so that when I click an item it makes a link to it, but if there's nothing selected, have it make a link to the current folder. I was told I'd need a .bat file with the if argument. What exact commands would I use to make the file?
      My Computer


  2. Posts : 8
    Windows 7 Ultimate x64
       #31

    Great tutorial

    JunctionMaster
    JunctionMaster - FREEWARE

    MOVE, AND LINK -- RELOCATE FOLDER TO ANOTHER DRIVE WITH NO PATH CHANGE
    Junction v1.06

    http://technet.microsoft.com/en-us/s.../bb896768.aspx
    Last edited by Ices; 06 Sep 2014 at 06:47.
      My Computer


  3. Posts : 4
    XP/32, 7/64
       #32

    Hi Kari et al,

    Thanks for starting a thread and hosting great contributions! Alas, I still need help getting across the goal line with network drives.

    Using examples here and on MS's site, I created a test symbolic folder link called "Lighting" here:
    "F:\junk\TESTING Standard Project Folder TESTING\Documents\17-Specifications"
    It points to the "Lighting" folder here:
    "N:\junk\TESTING Standard Project Folder TESTING\Drawings\04-Design Development\01 Finishes Lighting & Specifications\Lighting"
    The link has these issues:

    • Right-clicking, selecting Properties and Open Folder Location leads to the Lighting folder (without opening it).
    • Double-clicking on the link in Windows doesn't throw an error, but does produce an "Open With" window with (irrelevant) choices.
    • Efforts to copy the link fail, claiming that "The filename, directory name, or volume label syntax is incorrect."

    I really appreciate hearing of Skol's success. Does anyone have any ideas about what I'm doing wrong?

    Thanks for all comments!
      My Computer


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

    Please post the mklink command exactly as you have given it (full paths, dots, colons, spaces and all characters as you have used them in the command, using the exactly same syntax you have used).

    An example mklink command:

    mklink /j D:\Docs E:\Users\Kari\Documents

    I want you to post your command as above, the complete command line.
      My Computer


  5. Posts : 4
    XP/32, 7/64
       #34

    Thanks! It was created within admin-enabled command prompt while within the following directory:

    "F:\junk\TESTING Standard Project Folder TESTING\Documents\17-Specifications"

    mklink /d "Lighting" "N:\junk\TESTING Standard Project Folder TESTING\Drawings\04-Design Development\01 Finishes Lighting & Specifications\Lighting"

    FYIs: F and N are the same location. The Properties browse confirms that Windows properly identifies it. I can't copy it in a window or in command prompt.
      My Computer


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

    One more question, is TESTING Standard Project Folder TESTING really name of a folder in your target's path? Also, the link must contain full path for example C:\Lighting or X:\Docs\Lighting. Your's only have "Lighting" without path.
      My Computer


  7. Posts : 4
    XP/32, 7/64
       #36

    Oops; thanks, that makes the shortcut work as expected in the original location. Now, the shortcut/link works as expected there, and running the DIR command there describes the entity as a <SYMLINKD>.

    The final hurdle is making the relative reference work on the live volume. This means copying it (or, in live use, the folder set in which it lives) to the production drive.

    Here is where it appears to fail: When copied to the target location, the link becomes a directory there. In fact, it becomes a directory even when copied into a different folder in its own folder set.

    I had thought that the symbolic reference would enable me to create a portable link whose reference would always be relative to the specification regardless of location as long as the relevant folder structure remained intact.

    Might I be trying to use the entity in a way that is different from its intended use, or might it not work on Windows 2008 virtual servers running over xenserver?
      My Computer


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

    The links and targets cannot be portable. Both link and target need an absolute path.
      My Computer


  9. Posts : 4
    XP/32, 7/64
       #38

    Then I'm trying to use the symbolic link for something it's not intended to do. I'm looking for a way to build portable shortcuts (with relative references to their targets) into a template of folders so that, when users physically copy the template to a live destination, the copied shortcuts would point to the new destinations.

    Autodesk uses "xrefs" - external references - in this way, with either absolute or relative references to files that support a main file being edited. Using relative references enables the entire file set to be moved to other drives or systems while preserving the external references.

    Thanks for helping to clarify mklink and symbolic linking for me. I'll keep searching for my answer!
      My Computer


  10. Posts : 29
    Windows® 7 (64-bit)
       #39

    I have a post-it notes type app on my system where I keep all sorts of computer related info, including one titled "Junction Point Creation" which I'll replicate here. This is how I had to word it to myself for it to be completely clear. Since a certain measure of uncertainty usually accompanies this issue for many, hopefully it'll help clear any confusion, Kari's excellent article notwithstanding. Then again it may make things worse  :


    Step 1.
     Move the folder in question from its current location ( OLDLOC ) to the new location where you'd like it to reside from now on ( NEWLOC )

    Step 2.
     Execute : mklink /j "OLDLOC" "NEWLOC"

    Step 3. ( optional )
     Set the 'h' ( hide ) attribute to the folder in question in OLDLOC ( not NEWLOC—the preceding command will have made it "reappear" in OLDLOC, i.e. in its original location… hence, the 'h' attribute if desired )
      My Computer


 
Page 4 of 16 FirstFirst ... 2345614 ... 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 17:58.
Find Us