OS commands

Calvelo Daniel dcalvelo at pharion.univ-lille2.fr
Wed Sep 27 12:48:30 EDT 2000


Matthew Banham <matb at photond.com> wrote:
: Just a quickie from a python newbie (who couldn't find this 
: easily in the manual and is a bit lazy!). From the python 
: interpreter command prompt, how would I execute a DOS command? 

Does 

import os
os.system("dir")

not do what you wanted?

HTH,DCA

-- Daniel Calvelo Aros
     calvelo at lifl.fr



More information about the Python-list mailing list