[python-win32] regarding invoking command prompt using python

bob gailer bgailer at gmail.com
Wed Jun 17 15:30:02 CEST 2009


a h wrote:
> Hi all
>  
> 1.I want to know how do i write batchfile kind of file in python so 
> that it executes some commands. Code snippets are required.

import os
os.system(command)

e.g. os.system(" c:\>temp_folder\next_folder\test.exe")

> 2.As well how do i invoke command prompt.

Not sure what that means. Please explain.

-- 
Bob Gailer
Chapel Hill NC
919-636-4239


More information about the python-win32 mailing list