[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3363
  • Last Modified:

Relative path shortcuts

Can someone please tell me how can I create relative path shortcuts (eg. refer to a file in parent directory regardless of the drive the folder is on).
I've tried to create a shortcut pointing to ".\abc.exe", however, Windows changed it to absolute shortcut immediately, ie. "c:\test\abc.exe"
Thanks.
0
nyt
Asked:
nyt
1 Solution
 
bdemarzoCommented:
Unfortunately, you can't - shortcuts always point to absoltue paths. However, instead of a shortcut, you can make a short BATch file that opens the file you want.

Create a new text file ending in .BAT (say, "shortcut.bat"). Type one line in the file - the line being the relative path to the executable you want to run.

This still _could_ fail, if your system is set up with a default command prompt directory... but that's a separate problem.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now