I frequently need to create links to files located in various Windows directories. Here is the script I use, in Windows 10 (I believe it will work in Windows 7 as well, but not sure how far back beyond that). I associate a Hot Key with my script so that I can use it at any time.
To use this script...
1) select a file in Windows Explorer
2) run the script (which will create the link and place it on the clipboard)
3) paste the link wherever you want to use it
I hope it's helpful to others.
-Richard
Code: Select all
//Copy as Path utility
Wait>1
Press>Shift
RClick
Release>Shift
Wait>1
Send>a
Wait>1
WaitClipBoard
GetClipBoard>clipdata
StringReplace>clipdata,",,clipdatatransone
StringReplace>clipdatatransone,SPACE,%20,clipdatatranstwo
PutClipBoard>file:///%clipdatatranstwo%
Exit