I intend to run a .cmd file, which will have
python my_program.py "Short string of information to pass to Python"
in it. The Python program will determine the path that the .cmd file needs, so I want to pass it as a string back to the .cmd when it finishes running, and then I want the .cmd to assign it to a variable, like so:
SET MY_VARIABLE <string-from-Python-here>
Is there a way I can do this? This Python file may also need to do some configuration first. We are running Python 2.7.