Originally posted by Inderjeet Dhody:
Hello,
I am able to execute echo, set and other windows command prompt commands through Java Program. Can anyone help to execute "set variable = value" command. Its not changing variable value to some other value.
Thanks
Inderjeet
I doubt that there is a way to do that. The JVM runs in a separate process with a separate shell. Any process that is spawned from the JVM with Runtime.exec() should inherit the environment of the JVM though.
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher