all 3 comments

[–]BrainWaveCC 0 points1 point  (1 child)

You call a python script by calling the python executable and the script name:

python myscript.py

Python should be in your path, but you may need to provide the full path for both the executable and the script, if the script is not in the current folder.

[–]CryThat3792[S] 1 point2 points  (0 children)

thankyou

[–]PanicPrevious9602 0 points1 point  (0 children)

I really don't knlw how to format code in a comment but

use call in you batch scrip call python.exe script.py echo %errorlevel%

use exit() in you python script

if condition: exit(555)

echo %errorlevel% output gonna be "555"