Shortcut in a path breaks hyperlink


  1. Posts : 3
    Win 7 32 bit
       #1

    Shortcut in a path breaks hyperlink


    Hi, I have the situation where a directory path has changed and I have emails that have hyperlinks to files (in the emails) that point to the old path. In my old Unix days I would have just created a link using ln command. In Windows I can create a shortcut to the old directory (which works in explorer), but the name I create has a .lnk extension. This seems to break the hyperlink.

    Does anyone know a way to make the old path valid so that the hyperlinks work?




    Example:
    1. Hyperlink points to c:\a\x.doc
    2. c:\a is renamed c:\b
    3. shortcut c:\a created pointing to c:\b
    4. off course c:\a is actually c:\a.lnk in Windows
    5. Hyperlink broken
    In my real situation the moved directory sits in the middle of a long path.

    Any help/workaround would be appreciated.

    Julian
      My Computer


  2. Posts : 51,479
    Windows 11 Workstation x64
       #2

    This is not my area but you should be able to sort it with a symlink/junction point.

    From an administrator/elevated command prompt
    Code:
    Mklink /j "c:\a" "c:\b"
      My Computers


  3. Posts : 3
    Win 7 32 bit
    Thread Starter
       #3

    Thank you z3r010. I have tested on my home machine and it works exactly as I want it to. However and there always seems to be one. I need to be able to this as a user on a domain without administration rights. Any suggestion? Not sure why Microsoft made this an admin only function. I suppose general users would never need it. Cheers Julian
      My Computer


  4. Posts : 51,479
    Windows 11 Workstation x64
       #4

    Sorry, as I said it's not really my area so hopefully somebody else will have some input.
      My Computers


  5. Posts : 3
    Win 7 32 bit
    Thread Starter
       #5

    Solution is great for local disks and works fine, but on a shared network drive in the corporate environment I could not get it to work. If anyone has alternative that would be helpful. Suggestion very much appreciated. Thanks
      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 22:13.
Find Us