Relative shortcuts

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I've found other users asking the same question but never found an answer to
this question. Is it possible to create a relative shortcut in windows? I
would like to create a shortcut to an application that will be stored on a
removable drive so an absolute shortcut will always break.

Thanks
Hua-Ying
 
you could use batch files with environment variables. shoot me an email and
i can help you out.

chlumpc AT gmail DOT com
 
Anon,

Thanks for the response and the offer to help. I would like to take a shot
at it myself first, but I'll email you if I get stuck.

Hua-Ying
 
For anyone else who's having this problem:

This is the bat file i'm using to get around the relative shortcuts problem:

cd %CD%
folder1\file.exe

%CD% is the environment variable "current directory"
I wanted to use %CD%\folder1\file.exe but if here is a folder with a space
the this won't work, tried quoting and it still didn't work. If there's a
way around this please let me know.

Thanks,
Hua-Ying
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top