I'm trying to run a .bat file that sets environment variables. Here's how my TCL looks:
# Set env variables #
exec test.bat
# DOS command to print value of variable (does not contain new value) #
puts [exec cmd.exe /c echo %ENVVARIABLE%]
The .bat is executed and the variables are set when I echo from the .bat, but when control returns to my TCL script, they are no longer there. Please help...
Thanks.
# Set env variables #
exec test.bat
# DOS command to print value of variable (does not contain new value) #
puts [exec cmd.exe /c echo %ENVVARIABLE%]
The .bat is executed and the variables are set when I echo from the .bat, but when control returns to my TCL script, they are no longer there. Please help...
Thanks.