?
Solved

Relative path shortcuts

Posted on 2000-03-12
1
Medium Priority
?
3,359 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
bdemarzo earned 48 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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
This article helps those who get the 0xc004d307 error when trying to rearm (reset the license) Office 2013 in a Virtual Desktop Infrastructure (VDI) and/or those trying to prep the master image for Microsoft Key Management (KMS) activation. (i.e.- C…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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…

777 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