Shortcut in a path breaks hyperlink

JulianPaul

New member
Local time
3:32 PM
Messages
3
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

OS
Win 7 32 bit
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 Computer

Computer type
PC/Desktop
OS
Windows 11
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

OS
Win 7 32 bit
Sorry, as I said it's not really my area so hopefully somebody else will have some input.
 

My Computer

Computer type
PC/Desktop
OS
Windows 11
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

OS
Win 7 32 bit
Back
Top