creating shortcut to program with relative, not absolute, path

Z

Zytan

I have a program, and I want a shortcut to it, since the program
accepts parameters. The shortcut can be used as a convenient way to
launch the program with different parameters.

But, the shortcuts have an ABSOLUTE path! This means if I copy the
program elsewhere, the shortcut won't work, and Windows gives me an
error (although, it does correct the shortcut afterwards, but I'd
rather it just work from the start).

Can I make a shortcut with a RELATIVE path? To avoid all of this?
Windows doesn't seem to accept ".\MyProgram.exe".

thanks
Zytan
 
L

LVTravel

While there may be a way to create a relative path I don't know of a way to
do that.

Why don't you correct your shortcut when you move the program? That way you
won't have any problems later and the fix for the shortcut will be
permanent.
 
Z

Zytan

Why don't you correct your shortcut when you move the program? That way you
won't have any problems later and the fix for the shortcut will be
permanent.

I never know where it will be moved to. Win2000 complains that the
shortuct doesn't work, but will fix it automatically (I'm not sure if
it runs it or not, though, I may have to click on it again to run it
after it's been fixed). WinXP just fixes it and runs it. So, I guess
there's no problem. Just doesn't seem proper. I assume the auto-
fixing it a result of it messing up in beta testing.

Zytan
 
N

Noozer

Zytan said:
I never know where it will be moved to. Win2000 complains that the
shortuct doesn't work, but will fix it automatically (I'm not sure if
it runs it or not, though, I may have to click on it again to run it
after it's been fixed). WinXP just fixes it and runs it. So, I guess
there's no problem. Just doesn't seem proper. I assume the auto-
fixing it a result of it messing up in beta testing.

I'd love to know the answer to this problem myself.

I have a few programs on USB drives where I can't guarantee what drive
letter that they'll get.
 
B

Bob I

Think you request over carefully. If a "relative path" is used then the
short cut would need to be relocated every time the target is moved.
 
Z

Zytan

Think you request over carefully. If a "relative path" is used then the
short cut would need to be relocated every time the target is moved.

I don't understand, I would think a relative path would work no matter
where you move the target, as long as the shortcut was in the same
directory tree you are moving with the target.

Zytan
 

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

Top