[python-win32] executing dos commands

Vernon Cole vernondcole at gmail.com
Fri Mar 6 18:40:51 CET 2009


One warning: If you do a chdir command (for example) or define a dos
environment variable, etc, in a shell script -- using any of the subprocess
or os.system or such commands -- it will only affect the child procees which
is created for the call, not the process you make the call from.  This is
not what you are trying for in most cases.
  The os.chdir() function and its friends will do what you probably want.
--
VC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20090306/e1278f23/attachment-0001.htm>


More information about the python-win32 mailing list