I am working on a Tcl script in which I have a variable and I just want to keep its value alive after the completion of its execution, so I am trying to define a windows environment variable by executing the set windows command within the script using the exec function.
I have also tried to find the solution through google but that too didn't work. Here is the line of code which I have tried
exec set verName=$xVar
It would be great if you can help me. Thanks in advance.