> import os > a = os.popen('"c:\Program Files\Grisoft\AVG Free\avgscan.exe" > "c:\program files\temp1\test1.txt"') > print a.read() > use raw strings e.g., instead of '"c:...\avgscan...' use r'"c:...\avgscan...' http://www.ferg.org/projects/python_gotchas.html#contents_item_2