Page 1 of 1
Environment variable in Plugins configuration
Posted: 20 Feb 2009, 12:56
by EvaEden~
Hi,
please allow also in plugins configuration settings with environment variables. Thanks, ~Eva
[HKEY_CURRENT_USER\Software\Altap\Altap Salamander 2.52 beta 1\Editors\1]
"Command"="$[ProgramFiles]\\UltraEdit\\Uedit32.exe"
[HKEY_CURRENT_USER\Software\Altap\Altap Salamander 2.52 beta 1\Plugins Configuration\Renamer]
"Command"="C:\\Program Files\\UltraEdit\\Uedit32.exe"

Environment variable in Plugins configuration
Posted: 05 Mar 2009, 11:47
by EvaEden~
... a little problem more:
In earlier AS versions I don't need quotation marks using variables and let it execute through shell in the user dir configuration ("$(SalDir)\NS.bat"). Now, without quotation marks the command won't be executed...
Environment variable in Plugins configuration
Posted: 05 Mar 2009, 17:32
by Ether
EvaEden~ wrote:In earlier AS versions I don't need quotation marks using variables and let it execute through shell in the user dir configuration ("$(SalDir)\NS.bat"). Now, without quotation marks the command won't be executed...
Try unchecking the
Execute through shell option.
Environment variable in Plugins configuration
Posted: 06 Mar 2009, 14:15
by EvaEden~
Hi Ether,
thanks very much, but then a cmd shell appears. I want to run my batch files hidden. At the moment the usage of quotation marks is the only workaround.
I wrote this because maybe an error has creeped in the new version...
Posted: 06 Mar 2009, 19:03
by Ether
I don't think so, v2.51 behaves the same. Could you tell me, which Salamander version worked for you without quote marks? Have you changed the Salamander program directory ($(SalDir)) since then?
Environment variable in Plugins configuration
Posted: 09 Mar 2009, 17:18
by EvaEden~
Hi Ether,
it works only before version 2.51. With 2.51 and later I've the described problem...
Thanks for your effort!
Posted: 09 Mar 2009, 19:27
by Ether
I'm sorry, but I can't get it to work without quotes even with AS v2.5, and SS v2.0 seems to not support variables in the command path. Could you post some example and a step-by-step guide to reproduce the problem?
Environment variable in Plugins configuration
Posted: 10 Mar 2009, 09:17
by EvaEden~
Hi Ether,
I beg your pardon!
I've reproduced it also with AS2.5 and SS2.0 and it was the same behavior. It was my mistake! I've seen with a batch without the option "Execute through shell" no quotes are necessary, but within a shell this is not working. So there is a (small) distinction in the manner of acting...
Thanks very much for your help!!!
But nevertheless I've still the feature request of using environment variables. (In configuration and also in using explorer actions: copying etc. like Jesper Hertel describes in his posting.)
Posted: 27 Mar 2009, 12:39
by Jan Rysavy
EvaEden~ wrote:But nevertheless I've still the feature request of using environment variables.
It will be supported from Altap Salamander 2.52 beta 2. Thank you for this idea!
Posted: 27 Mar 2009, 13:55
by Ether
Little off topic: There are other places where the possibility of using environment variables was requested (Hot Paths, Change Directory, Copy, Move, ...). Will it be implemented there, too?
Environment variable in Plugins configuration
Posted: 27 Mar 2009, 14:52
by Jan Rysavy
Maybe we will find the time someday.
This was relatively small patch (Registry Editor and Renamer plugins only) and I only synchronized their configuration dialog boxes with existing (User Menu) in Salamander for better portability.
Edit: "Winndows" -- old typo, I will fix it.
Re: Environment variable in Plugins configuration
Posted: 28 Apr 2009, 09:50
by EvaEden~
Hi Jan,
please do it also in User Menu | Change Icon:
Icon REG_SZ C:\\WINNT\\system32\\sndrec32.exe,0
Initial Directory REG_SZ $(WinDir)\\system32
Poss. in Hot Paths (e.g. %ProgramFiles%) too...
TIA, Eva
Re: Environment variable in Plugins configuration
Posted: 24 May 2009, 17:07
by vld
Re: Environment variable in Plugins configuration
Posted: 24 May 2009, 18:24
by zarevak
I suspect the last post being some sort of spam bot test
The exact same sentences can be found on other websites having "Environment" in their title... (I don't wan to link them. You can use Google: put the last sentence in quotes to search for it.)