From Geoff Chappell’s The Windows Explorer Command Line
import subprocess
subprocess.Popen(r'explorer /select,"C:\path\of\folder\file"')
More Related Contents:
- How can I install pip on Windows?
- ‘pip’ is not recognized as an internal or external command
- Request UAC elevation from within a Python script?
- pip how to remove incorrectly installed package with a leading dash: “-pkgname”
- “ImportError: No module named site” on Windows
- Running windows shell commands with python
- Python os.path.join on Windows
- What is the correct way to set Python’s locale on Windows?
- Shebang Notation: Python Scripts on Windows and Linux?
- Run Process and Don’t Wait
- Get HWND of each Window?
- Python | accessing dll using ctypes
- Detect 64bit OS (windows) in Python
- How to display utf-8 in windows console
- rpy2 install on windows 7
- GetWindowRect too small on Windows 7
- Line reading chokes on 0x1A
- Can Python select what network adapter when opening a socket?
- UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x96 in position 35: invalid start byte
- Add advanced features to a tkinter Text widget
- Set up Python simpleHTTPserver on Windows [duplicate]
- Drag and drop onto Python script in Windows Explorer
- Having trouble installing pycurl on windows
- Python subprocess.Popen as different user on Windows
- Error: No module named ‘fcntl’
- ‘pip setup.py bdist_wheel’ no longer builds forced non-pure wheels
- Add “django-admin.py” path to command line on Windows 7
- multiprocessing: How can I ʀᴇʟɪᴀʙʟʏ redirect stdout from a child process?
- Python long filename support broken in Windows
- Python file.write creating extra carriage return