Liberkey and Environment Variables

A problem using LiberKey ?
15 posts • Page 1 of 21, 2

Liberkey and Environment Variables

Postby Lockszmith » 01 November 2010, 12:22

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.
User avatar
Lockszmith
Junior Boarder
Junior Boarder
 
Posts: 75
Joined: 14 June 2009, 21:54

Re: Liberkey and Environment Variables

Postby skybird » 02 November 2010, 17:33

Hello Lockszmith.

Lockszmith wrote: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 wrote: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
skybird
Gold Boarder
Gold Boarder
 
Posts: 1766
Joined: 10 October 2007, 10:45

Re: Liberkey and Environment Variables

Postby Lockszmith » 02 November 2010, 22:28

skybird wrote: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.
User avatar
Lockszmith
Junior Boarder
Junior Boarder
 
Posts: 75
Joined: 14 June 2009, 21:54

Re: Liberkey and Environment Variables

Postby ricky » 27 November 2010, 17:04

Hello,

i'm usinsg autoit to create a little software, but how can I catch these windows environment variables?
ricky
Expert Boarder
Expert Boarder
 
Posts: 84
Joined: 05 June 2008, 11:04
Location: Suisse

Re: Liberkey and Environment Variables

Postby ricky » 14 January 2011, 13:29

Hello,

up...
Nobody can help me?
ricky
Expert Boarder
Expert Boarder
 
Posts: 84
Joined: 05 June 2008, 11:04
Location: Suisse

Re: Liberkey and Environment Variables

Postby Dji » 14 January 2011, 13:57

Liberkey "environment" variables can only be understood by LiberkeyTools (portabilizer, menu, etc) at the moment.
"Si boire des coups, aller au concert ou au match, ça devient un combat
Alors tremblez, terroristes !
Parce qu'on est surentraînés !"
@glecalot
User avatar
Dji
Administrator
Administrator
 
Posts: 3724
Joined: 28 November 2007, 09:57
Location: Quelque part entre les ombres

Re: Liberkey and Environment Variables

Postby ricky » 14 January 2011, 14:08

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?
ricky
Expert Boarder
Expert Boarder
 
Posts: 84
Joined: 05 June 2008, 11:04
Location: Suisse

Re: Liberkey and Environment Variables

Postby ricky » 07 July 2011, 17:29

ricky wrote: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?
ricky
Expert Boarder
Expert Boarder
 
Posts: 84
Joined: 05 June 2008, 11:04
Location: Suisse

Re: Liberkey and Environment Variables

Postby Dji » 07 July 2011, 22:33

Put the following code into a batch file (e.g. lbk_variables.bat) and execute it.
Code: Select all
@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
"Si boire des coups, aller au concert ou au match, ça devient un combat
Alors tremblez, terroristes !
Parce qu'on est surentraînés !"
@glecalot
User avatar
Dji
Administrator
Administrator
 
Posts: 3724
Joined: 28 November 2007, 09:57
Location: Quelque part entre les ombres

Re: Liberkey and Environment Variables

Postby feeks » 09 September 2011, 14:35

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.
feeks
Fresh Boarder
Fresh Boarder
 
Posts: 16
Joined: 21 May 2010, 08:18

Next

15 posts • Page 1 of 21, 2

Return to Support

Who is online

Users browsing this forum: No registered users and 282 guests

cron