Hi,
I did what Horst.Epp advised and it worked, thanks!
But regarding ...
Horst.Epp wrote: 2025-04-16, 12:35 UTC
If you have a real portable TC installation
... it looks like the paths used in some of my toolbars, buttons on toolbars, em_ commands, ... are not really "portable".
I would like to correct that, but in order to do so I have a question:
Help says ...
- %variablename:~5,7% skips 5 characters and uses the following 7. Negative numbers count from the end of the environment variable.
- %COMMANDER_PATH% The Total Commander directory
Now ...
- If my %COMMANDER_PATH% is "K:\Program Files\Total Commander Portable\"
- If I also have other portable software in "K:\Program Files\Portable Program A\", "K:\Program Files\Portable Program B\", ...
... what should I write in %COMMANDER_PATH:
~x,y% if I want to allow
K:\Program Files to be anything, so that I can move my
Total Commander Portable\, Portable Program A\, Portable Program B\, ... folders anywhere?
- Moving all of them to "D:\Program Files\" should work
- Moving all of them to "C:\Users\MyName\Documents\FD\_Tools\Program Files\" should work
So, probably in %COMMANDER_PATH:
~x,y% I want
- ~x to count backwards, starting from the end (I guess ~-25 should keep K:\Program Files\)
- y to count everything that then remains from %COMMANDER_PATH%, backwards from the end or forward from the start
Questions
- what can I put for y to keep any number of remaining characters?
- can %COMMANDER_PATH:~x,y% be used for paths to anything in Total Commander (Bars, em_ commands, ...) ?