how about simply:
import os
os.system('dir c:\\')
More Related Contents:
- pip install fails with “connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598)”
- How do you fix “runtimeError: package fails to pass a sanity check” for numpy and pandas?
- Executing periodic actions [duplicate]
- “Cannot open include file: ‘config-win.h’: No such file or directory” while installing mysql-python
- Get screenshot on Windows with Python?
- PyWin32 and Python 3.8.0
- Set up Python on Windows to not type “python” in cmd
- Can I install Python 3.x and 2.x on the same Windows computer?
- Fastest way to take a screenshot with python on windows
- How to build a SystemTray app for Windows?
- portable way to write csv file in python 2 or python 3
- How to run a python script in the background?
- Long paths in Python on Windows
- Install libxml2 and associated python bindings – Windows
- Interacting with program after execution
- Why does the Python 2.7 AMD 64 installer seem to run Python in 32 bit mode?
- How can I add python to cmd in windows [closed]
- ‘^’ is ignored by Python – how to escape ‘^’ character in Popen Windows?
- Installing pygraphviz on Windows 10 64-bit, Python 3.6
- Running Python Script as a Windows background process [duplicate]
- Using Windows Python from Cygwin
- multiprocessing pool example does not work and freeze the kernel
- Trying to create a virtualenv in python and activate it
- Why can’t I handle a KeyboardInterrupt in python?
- Open File in Another Directory (Python)
- Sending ^C to Python subprocess objects on Windows
- Why does the asyncio’s event loop suppress the KeyboardInterrupt on Windows?
- Execute Commands Sequentially in Python?
- How to calculate length of string in pixels for specific font and size?
- Can’t import cv2; “DLL load failed”