PC Review


Reply
Thread Tools Rate Thread

creating shortcut to program with relative, not absolute, path

 
 
Zytan
Guest
Posts: n/a
 
      11th Jun 2007
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

 
Reply With Quote
 
 
 
 
LVTravel
Guest
Posts: n/a
 
      11th Jun 2007
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.



"Zytan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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
>



 
Reply With Quote
 
Zytan
Guest
Posts: n/a
 
      12th Jun 2007
> 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

 
Reply With Quote
 
Noozer
Guest
Posts: n/a
 
      12th Jun 2007

"Zytan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>> 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.


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.


 
Reply With Quote
 
Bob I
Guest
Posts: n/a
 
      27th Jun 2007
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.

Zytan wrote:

> 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
>


 
Reply With Quote
 
Zytan
Guest
Posts: n/a
 
      21st Aug 2007
> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Script w/relative path that sends absolute path to a folder to theclipboard? StargateFanNotAtHome@mailinator.com Microsoft Outlook VBA Programming 3 24th Mar 2009 01:32 PM
how to judge whether a path is relative path or absolute path thinktwice Microsoft Windows 2000 CMD Promt 20 7th May 2008 11:06 PM
Relative path vs. absolute path possible in storing pictures? StargateFanFromWork Microsoft Access Getting Started 5 2nd Dec 2005 09:29 AM
why relative hint path but absolute reference path gerry Microsoft Dot NET Framework 1 23rd Sep 2004 09:44 AM
There are any Path or Directory function to convert an absolute pathto a relative path? Ffelagund Microsoft VC .NET 2 8th Mar 2004 07:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:39 PM.