Re: Regarding subprocess module

2008-09-05 Thread Gabriel Genellina
En Fri, 05 Sep 2008 09:56:02 -0300, tarun <[EMAIL PROTECTED]> escribió: import subprocess,time cmdExe = "C:\\WINDOWS\\system32\\cmd.exe" myProcess = subprocess.Popen(cmdExe,stdin=subprocess.PIPE) time.sleep(2) myProcess.stdin.write('cd Desktop\r\n') I copied the above lines of code to a file

Regarding subprocess module

2008-09-05 Thread tarun
Hello all, I wrote the following code: import subprocess,time cmdExe = "C:\\WINDOWS\\system32\\cmd.exe" myProcess = subprocess.Popen(cmdExe,stdin=subprocess.PIPE) time.sleep(2) myProcess.stdin.write('cd Desktop\r\n') I copied the above lines of code to a file and tried executing the python file