Is there a way we can run the python scripts in batch (in Window) The execution should be sequential. Like, Script1,Script2 are stored in a drive. The batch script should invoke Script1 first, Script 1 runs and returns the control back to main batch script, which then invokes Script2. When I write windows batch file, t runs all the script at once. I want them to run in sequence. I know I can write a simple batch. But that runs the scripts at same time. I want them in orderly fashion. Running them together causes undesirable outputs
Asked
Active
Viewed 8,828 times
0
-
use `subprocess` for calling & **maybe** put each script in a different method & from that script call the next method – Alok Mar 07 '14 at 06:52
-
possible duplicate of http://stackoverflow.com/questions/13880650/how-to-call-run-multiple-python-scripts-from-batch-file-in-window-xp-7 – Sharif Mamun Mar 07 '14 at 06:57
-
But I need sequential execution. Like I want first script to run first, then the second one – user2927392 Mar 07 '14 at 09:24