Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Relative path shortcuts

Posted on 2000-03-12
1
Medium Priority
?
3,360 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

Technology Partners: 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!

Question has a verified solution.

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

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…
A small collection of useful tips and tricks for Windows 10 users that I decided to write as a result of recent questions that were asked and answered at Experts Exchange. Two short video tutorials included. Enjoy..
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

610 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