Hi I want create a python script that executes a command line cmd.exe with echo off and with this comand below
unrar.exe -e -w -b compression.rar c:/tmp
notepad.exe readdocument.txt
and then after this command line must close the command line , and must execute a normal python script , which is this one below
os.rename('readdocument.txt','readdocument-done.txt') import urllib testfile = urllib.URLopener() testfile.retrieve("http://randomsite.com/file.gz", "file.gz") how can I create this script correctly?
echo off, why runcmd.exe? What's wrong with just running the programs one after the other from Python?