Set Windows shortcut arguments path relative
My goal is to create a portable PDF that will execute with the portable navigator I include in the package. The problem is that the navigator's shortcut changes and sets itself relative path correctly, but the arguments on the target field (the PDF file I want the shortcut navigator to open when clicked) remains on the old path.
The challenge is to get the argument path relative to wherever the shortcut is placed (both shortcut and folder with nav and PDF are moved together).
I've tried to set a relative path on the argument in the target field to the Start in field, such as shown in the following example, but it won't work:
Target-> E:\DATA\GoogleChromePortable.exe" .\myPDF.pdf Start in-> E:\DATA
Both myPDF and myShortcut are placed in the same folder (DATA), and the Target and Start in fields become relative according to if changed, their paths adapt to the new location.
Comments
Post a Comment