How to execute a command prompt command from python March 31, 2023 by Tarik how about simply: import os os.system('dir c:\\')