Link to home
Start Free TrialLog in
Avatar of maurice cristen
maurice cristen

asked on

can anyone create this type of batch?

can anyone create this type of batch?
I run this Simple-Script.bat:
python my.py -w200
python my.py -w132
python my.py -w900
python my.py -w211

Open in new window

Each line runs well ---> python.exe process opens for each line(do his job) then closes automatically,but it seems that some lines cause problems,python.exe process opens but it never closes and i receive this error message:
failure code 5

Open in new window


Can someone make python.exe automatically when a line receives that error? then continue with the next (line) command?
thxx!

P.S.
or if someone knows the Python scripts can change directly from there.
ASKER CERTIFIED SOLUTION
Avatar of NVIT
NVIT
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of maurice cristen
maurice cristen

ASKER

and if dones't kill? i must run this cript as system? as administrator?
NVIT that can do automatically that python.py script but when i get that error  he can't so can u take a look to that python script?do u know python language? a bit?
tahnk you
Whoever runs the batch, which runs python.exe, should be able to kill python.exe.