posted 18 years ago
hey,
All I'm trying to do is to set through the code different settings for JAVA_HOME and PATH.
I have an installation kit and each compter has different settings.
Now I use a setEnv.cmd file:
System\Service\setx JAVA_HOME c:\j2sdk1.4.2_02 -m
set JAVA_HOME=c:\j2sdk1.4.2_02
System\Service\setx MYSQL_HOME c:\mysql -m
set MYSQL_HOME=c:\mysql
System\Service\setx path "c:\j2sdk1.4.2_02\bin;c:\Eldat Common Path;c:\perl\bin;%path%" -m
set path=c:\j2sdk1.4.2_02\bin;c:\Eldat Common Path;c:\perl\bin;%path%;
The problem here is the static addresses, If I set it in the code it can be dynamic.
Can I do it?
thanks
Yossi