Returning a python value to the calling bat file

nobody root at [127.0.0.1]
Wed Nov 7 18:44:53 CET 2001


> I have a NT Shell bat file that calls a python script to do some
processing,
> then want that python to return the value to the calling bat file.  How do
I
> do that?

import sys
sys.exit(errorlevel)

where "errorlevel" is an integer






More information about the Python-list mailing list