Discussion:
relative shortcut for Windows [OT]
Jean-Luc Arnaud
2017-03-28 16:55:05 UTC
Permalink
Hi all,

Is there anybody in there, a kind of genius, knowing how to easily make
a relative shortcut for Windows?

Standard shorcuts have an absolute path to the target, for example
f:\MyFolder\MyApp.exe.

But when f: is an USB key that will mount on another PC or another time
on the same PC as a g: or k: (or what you want else) volume, the shorcut
no longer works. I read a lot of Internet threads, about .bat, .vbs,
.cdm command files. Nothing really interesting nor reliable.

So, any genius'advice?

I'm thinking about a little app replacing the shortcut (because of
different considerations, the main app is not directly accessible, it's
in a hidden folder).

Many thanks in advance for any help.
--
Jean-Luc Arnaud


_______________________________________________

Xojo forum:

https://forum.xojo.com/
vaughnsc .
2017-03-28 18:30:55 UTC
Permalink
Here, but not feeling 'genius' today.

If it's a one-shot, startup affair, is it too time-consuming to use
getFolderitem(driveLetter+path), loop through A-Z and exit if
folderItem.exists?

My 0.02 HTH,
Vaughn
Post by Jean-Luc Arnaud
Hi all,
Is there anybody in there, a kind of genius, knowing how to easily make a
relative shortcut for Windows?
Standard shorcuts have an absolute path to the target, for example
f:\MyFolder\MyApp.exe.
But when f: is an USB key that will mount on another PC or another time on
the same PC as a g: or k: (or what you want else) volume, the shorcut no
longer works. I read a lot of Internet threads, about .bat, .vbs, .cdm
command files. Nothing really interesting nor reliable.
So, any genius'advice?
I'm thinking about a little app replacing the shortcut (because of
different considerations, the main app is not directly accessible, it's in
a hidden folder).
Many thanks in advance for any help.
--
Jean-Luc Arnaud
_______________________________________________
https://forum.xojo.com/
_______________________________________________

Xojo forum:

https://forum.xojo.com/
vaughnsc .
2017-03-28 18:34:06 UTC
Permalink
Sorry I warned about not being sharp.

If this is external to Xojo just to get the hidden app to launch, then...
Um... maybe a helper console app? 😂

Vaughn
Post by vaughnsc .
Here, but not feeling 'genius' today.
If it's a one-shot, startup affair, is it too time-consuming to use
getFolderitem(driveLetter+path), loop through A-Z and exit if
folderItem.exists?
My 0.02 HTH,
Vaughn
Post by Jean-Luc Arnaud
Hi all,
Is there anybody in there, a kind of genius, knowing how to easily make a
relative shortcut for Windows?
Standard shorcuts have an absolute path to the target, for example
f:\MyFolder\MyApp.exe.
But when f: is an USB key that will mount on another PC or another time
on the same PC as a g: or k: (or what you want else) volume, the shorcut no
longer works. I read a lot of Internet threads, about .bat, .vbs, .cdm
command files. Nothing really interesting nor reliable.
So, any genius'advice?
I'm thinking about a little app replacing the shortcut (because of
different considerations, the main app is not directly accessible, it's in
a hidden folder).
Many thanks in advance for any help.
--
Jean-Luc Arnaud
_______________________________________________
https://forum.xojo.com/
______________________________________________
Jean-Luc Arnaud
2017-03-29 07:28:54 UTC
Permalink
Post by vaughnsc .
maybe a helper console app?
Yes, it's the only idea I had. Probably the best solution...

Thanks for replying.

Jean-Luc Arnaud
Post by vaughnsc .
Sorry I warned about not being sharp.
If this is external to Xojo just to get the hidden app to launch, then...
Um... maybe a helper console app? 😂
Vaughn
Post by vaughnsc .
Here, but not feeling 'genius' today.
If it's a one-shot, startup affair, is it too time-consuming to use
getFolderitem(driveLetter+path), loop through A-Z and exit if
folderItem.exists?
My 0.02 HTH,
Vaughn
Post by Jean-Luc Arnaud
Hi all,
Is there anybody in there, a kind of genius, knowing how to easily make a
relative shortcut for Windows?
Standard shorcuts have an absolute path to the target, for example
f:\MyFolder\MyApp.exe.
But when f: is an USB key that will mount on another PC or another time
on the same PC as a g: or k: (or what you want else) volume, the shorcut no
longer works. I read a lot of Internet threads, about .bat, .vbs, .cdm
command files. Nothing really interesting nor reliable.
So, any genius'advice?
I'm thinking about a little app replacing the shortcut (because of
different considerations, the main app is not directly accessible, it's in
a hidden folder).
Many thanks in advance for any help.
--
Jean-Luc Arnaud
_______________________________________________
https://forum.xojo.com/
_______________________________________________
https://forum.xojo.com/
_______________________________________________

Xojo forum

Continue reading on narkive:
Loading...