How to execute a command prompt command from python

how about simply:

import os
os.system('dir c:\\')

Leave a Comment