Do it in the batch file. Output goes to a different file name. If no errors (you might need to modify the script to return an Errorlevel indicating whether or not there were errors) the batch file can delete the original & rename the output back to the input.
Note that I don't know Python. I do know batch files-so the old adage applies. "If all you have is a hammer then every problem looks like a nail."
|