Page 1 sur 2

Liberkey and Environment Variables

MessagePosté: 01 Novembre 2010, 12:22
de Lockszmith
Hi LiberKey team,

Is there a list available of Environment Variables that can be used by the LiberKey Menu? if not can someone produce one for our use.

Also, an issue I've encountered - When I use the %COMSPEC% environment variable, it changes to either to %SystemRoot%\system32\cmd.exe (which is passable) or when I run from the same partition as the os I get: %DRIVE%\Widnows\system32\cmd.exe

I understand the importance of preserving "the best" portable solution, but I myself prepare a "portable" set of environment variables, which would be useful to me with LiberKey - but it keeps "kicking them out".

Any chance to at least control if my own variables remain - or at least give LiberKey a list of variables to use and not replace?

Thanks in advance.

Re: Liberkey and Environment Variables

MessagePosté: 02 Novembre 2010, 17:33
de skybird
Hello Lockszmith.

Lockszmith a écrit:Any chance to at least control if my own variables remain - or at least give LiberKey a list of variables to use and not replace?

This behavior has been improved in the build published today (beta channel).

Lockszmith a écrit:Is there a list available of Environment Variables that can be used by the LiberKey Menu? if not can someone produce one for our use.

All current windows environment variables, plus
%APPS% = path of folder Apps
%MYAPPS% = path of folder MyApps
%LBKTOOLS% = path of folder LiberKeyTools
%LBKROOT% = path of LiberKey root folder (LiberKey.exe)
%DRIVE% = drive letter

Re: Liberkey and Environment Variables

MessagePosté: 02 Novembre 2010, 22:28
de Lockszmith
skybird a écrit:Hello Lockszmith.

This behavior has been improved in the build published today (beta channel).
.
.
.
All current windows environment variables, plus...


updated with enthusiasm to test the new features, and alas as I tried to use %COMSPEC% as the application executabel, once I hit Apply the properties window closes - without commiting the data.

Tried by editing the user_menu.xml file, this worked fine - it is something with the GUI most probably, but of course you guys will have to sort this out.

Re: Liberkey and Environment Variables

MessagePosté: 27 Novembre 2010, 17:04
de ricky
Hello,

i'm usinsg autoit to create a little software, but how can I catch these windows environment variables?

Re: Liberkey and Environment Variables

MessagePosté: 14 Janvier 2011, 13:29
de ricky
Hello,

up...
Nobody can help me?

Re: Liberkey and Environment Variables

MessagePosté: 14 Janvier 2011, 13:57
de Dji
Liberkey "environment" variables can only be understood by LiberkeyTools (portabilizer, menu, etc) at the moment.

Re: Liberkey and Environment Variables

MessagePosté: 14 Janvier 2011, 14:08
de ricky
it's not possible to give us a little program who can give us those variables by commandline for example? Or launch this little program and it creates a ini file with the information?

Re: Liberkey and Environment Variables

MessagePosté: 07 Juillet 2011, 17:29
de ricky
ricky a écrit:it's not possible to give us a little program who can give us those variables by commandline for example? Or launch this little program and it creates a ini file with the information?


Nobody can give me a response?

Re: Liberkey and Environment Variables

MessagePosté: 07 Juillet 2011, 22:33
de Dji
Put the following code into a batch file (e.g. lbk_variables.bat) and execute it.
Code: Tout sélectionner
@echo off

set drive=%cd:~0,3%
set myapps=%cd%
set liberkey=%myapps:MyApps=%

echo LBKROOT=%liberkey%
echo APPS=%liberkey%Apps
echo MYAPPS=%myapps%
echo LBKTOOLS=%liberkey%LiberkeyTools
echo DRIVE=%drive%

pause

Re: Liberkey and Environment Variables

MessagePosté: 09 Septembre 2011, 14:35
de feeks
I am also interested in this for a slightly different reason. For instance calling an application from an application which are both residing on the LiberKey Drive one specific example is 7-zip calling the editor function (F4). I would like to point the 7-zip editor option to a path like %drive%\Liberkey\apps\notepad++ etc instead of having to edit the path not configure the function for the application.

I tried the batch file approach but was not successful.