SyMenu Forum

SyMenu

 

HomeGeneral discussion & questions

Talk about SyMenu or post suggestions, requests, or how-to questions

Relative Paths? Messages in this topic - RSS

laffin_boy
laffin_boy
Posts: 14


18/12/2014
laffin_boy
laffin_boy
Posts: 14
Hi Gianluca,


When I built my flashdrive SyMenu ended up in a folder here:
flashdrive:\F_Apps\System\File_Sys\SyMenu\SyMenu.exe


and I put a link at the root of the drive which had the following path:
I:\F_Apps\System\File_Sys\SyMenu\SyMenu.exe


But today I plugged my FD into a Win 8 computer and started SyMenu. The computer found SyMenu and then re-wrote the link to the F: drive so that when I plugged the FD back into my own laptop I had to repair the link in order to start SyMenu.


So is there a way to write a relative path to SyMenu so that the shortcut works regardless of what drive letter it gets assigned?


laffin_boy.
link
Gianluca
Gianluca
Administrator
Posts: 1274


18/12/2014
Gianluca
Gianluca
Administrator
Posts: 1274
It is a behaviour more related to Windows than to SyMenu. I didn't know that Win8 repairs the broken links automatically and I don't know how to solve the problem with a Windows shortcut. I think that the Windows shortcuts don't support relative path.

Anyway I had the same problem as yours and the solution I personally adopted for my flash drive, raw and old school but working, is to create a simple .bat file in the root containing this command:

start SyMenu\SyMenu.Admin.exe

In your case naturally change the command with:

start F_Apps\System\File_Sys\SyMenu\SyMenu.exe

If you don't like the bat files you can use a cmd file (same syntax) or better a little exe file with whom you can change the icon too.

Let me know if the solution works or if someone has a better idea.
link
laffin_boy
laffin_boy
Posts: 14


19/12/2014
laffin_boy
laffin_boy
Posts: 14
Gianluca wrote:
create a simple .cmd file in the root containing this command:
start F_Apps\System\File_Sys\SyMenu\SyMenu.exe

Works great!!


Thanks once again.


laffin_boy
link



UGMFree © 2002-2024
PayPal BTC TON