[QUOTE=BearofNH;1474983]I just did the following interactively and as you can see, had no problems:
han = os.popen("SET FK") # Handle to output of subprocess SET FK command
for line in han: print line
Try this and be sure it works for you.
I trust you realize setting environment variables can only be done for the current process level and below. You can't set an environment variable for a higher level process. That's not Python, it's the O/S.[/QUOTE]
I did and it works for current process.
But i want to do it for Higher level process , on O/S level for temporary.
do you have any idea how i can do it?
or how i can get value of a python variable in other batch file , then i will use that value and will set environment variable in batch?