Usage of relative paths in FC

Bugs and other issues or requests which have been resolved.
Post Reply
Message
Author
Catorcio
Posts: 8
Joined: 18.05.2011, 11:16

Usage of relative paths in FC

#1 Post by Catorcio » 16.02.2015, 15:23

To explain the reason of my request, please allow me a short description of the following scenario.

Imagine I have my free software organized like that:
C:\whatever_path\myFreeSoftware\
C:\whatever_path\myFreeSoftware\FreeCommander\...
C:\whatever_path\myFreeSoftware\Notepad++\...
etc.
i.e. all my free software programs are under C:\whatever_path\myFreeSoftware\.
Now I would like to be able to copy the whole file system subtree starting at myFreeSoftware\ for example to the USB disk E:\myFreeSoftware, insert that USB disk into a different PC, launching FreeCommander from there, without changing any configuration and being able to use for example all the previously defined "Favorite tools" of FreeCommander. For that to work, what comes to my mind is to use in the "Favorite tools", in order to launch Notepad++ for example, a "Program" value string like
%FcSrcPath%\..\NotePad++\notepad++.exe
But that does not work (FC prints an error window).
Can you suggest an alternative way or could you please fix the bug (or if you prefer "improve" that feature)?
It is a matter of "expanding" at runtime " %FcSrcPath%\.." to the real path (in the example "E:\myFreeSoftware")

Best regards.
Last edited by Catorcio on 18.02.2015, 15:06, edited 1 time in total.

Timon
Posts: 729
Joined: 13.09.2012, 08:51

Re: Ssage of relative paths in FC

#2 Post by Timon » 16.02.2015, 18:31

%FcSrcPath% - FC's folder, where the main .exe is located
%FcSrcDrive% - the drive where FC starts from
%FcAppDataPath% - the folder where settings are saved
%FcTempPath% - saves the current FreeCommander TEMP path

So you are using wrong variables.

joby_toss
Posts: 1345
Joined: 22.07.2009, 21:19
Location: Romania
Contact:

Re: Ssage of relative paths in FC

#3 Post by joby_toss » 16.02.2015, 20:16

Catorcio wrote: Imagine I have my free software organized like that:
C:\whatever_path\myFreeSoftware\
C:\whatever_path\myFreeSoftware\FreeCommander\...
C:\whatever_path\myFreeSoftware\Notepad++\...
etc.
i.e. all my free software programs are under C:\whatever_path\myFreeSoftware\.
Now I would like to be able to copy the whole file system subtree starting at myFreeSoftware\ for example to the USB disk E:\myFreeSoftware, insert that USB disk into a different PC, launching FreeCommander from there, without changing any configuration and being able to use for example all the previously defined "Favorite tools" of FreeCommander. For that to work, what comes to my mind is to use in the "Favorite tools", in order to launch Notepad++ for example, a "Program" value string like
%FcSrcPath%\..\NotePad++\notepad++.exe
But that does not work (FC prints an error window).
Can you suggest an alternative way or could you please fix the bug (or if you prefer "improve" that feature)?
In your example, you don't really need the %FcSrcPath% variable (although it should work just fine because I've just tried it). You just use relative paths: "..\NotePad++\notepad++.exe" (".." is equivalent with "up one folder" starting from the location of "FreeCommander.exe").
Can you post a screenshot with the error message you get?

Catorcio
Posts: 8
Joined: 18.05.2011, 11:16

Re: Usage of relative paths in FC

#4 Post by Catorcio » 18.02.2015, 15:20

Sorry, my mistake, I just mistyped the path.
Using something like %FcSrcPath%\..\NotePad++\notepad++.exe works fine.
You can just delete this whole thread.
Sorry again and thanks for your patience.

Post Reply

Who is online

Users browsing this forum: No registered users and 46 guests