On Fri, Mar 6, 2009 at 1:29 PM, <[email protected]> wrote: > > Hi folkz, > just a simple question for a python guru:-) > > How can I execute dos commands via python? > The command exec("chdir \Dir1\dir2\..") doesn't do it. > > Many thanks in advance! > > Solomon > > _______________________________________________ > python-win32 mailing list > [email protected] > http://mail.python.org/mailman/listinfo/python-win32
Hi Solomon, I think you are looking for either os.system(command) or the subprocess module. Take a look at http://docs.python.org, very comprehensive and a great helpful tutorial. HTH Graeme _______________________________________________ python-win32 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-win32
