Solved

Relative path shortcuts

Posted on 2000-03-12
1
3,350 Views
Last Modified: 2013-12-29
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
Comment
Question by:nyt
1 Comment
 

Accepted Solution

by:
bdemarzo earned 24 total points
ID: 2613710
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question