Buildin Module Python Tutorial

from subprocess  import call
import os   
res = call(('dir', r'c:\windows\temp'), shell=True)