AnsweredAssumed Answered

.Bat file to run multiple .Py scripts

Question asked by jay.kapalczynski on Apr 19, 2017
Latest reply on Apr 20, 2017 by curtvprice

I am looking for info on how to properly write a .bat file that will run multiple python scripts sequentially.

If one of those scripts fails then I need the process to stop.

 

BUT i need then to run in sequence and wait before starting the next.

 

I think this is close but nothing in there that aborts if fails.

 

@echo off
start /wait D://PythonScripts/Script1
start /wait D://PythonScripts/Script2
start /wait D://PythonScripts/Script3
start /wait D://PythonScripts/Script4

Outcomes