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.
Usage of relative paths in FC
Usage of relative paths in FC
Last edited by Catorcio on 18.02.2015, 15:06, edited 1 time in total.
Re: Ssage of relative paths in FC
%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.
%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.
Re: Ssage of relative paths in FC
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").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)?
Can you post a screenshot with the error message you get?
Re: Usage of relative paths in FC
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.
Using something like %FcSrcPath%\..\NotePad++\notepad++.exe works fine.
You can just delete this whole thread.
Sorry again and thanks for your patience.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 71 guests