redirect or cover .bat log
Laurent Pointal
laurent.pointal at limsi.fr
Wed Aug 22 09:33:42 EDT 2007
vedrandekovic at v-programs.com a écrit :
> Can I execute one .bat file (without opening .bat window) just execute
> commands
> and log process redirect with sys.stdout or something in my wx window?
>
> Is this clear enough?
Type "help cmd" in a Windows console, then grab ad-oc options (/C and /A
or /U seem good candidates).
To completly hide the console... I dont know. But i have a set of .bat
scripts for a large application integration, they are started via
"start" (see help start) and with the /min option to have console
minimized in the task bar. Minimized, not completly invisible.
[for the remaining, its just subprocess module usage - see examples in
doc - and reading from output]
A+
Laurent.
More information about the Python-list
mailing list