Skip to content

Instantly share code, notes, and snippets.

@spontaneOS
Created December 20, 2018 21:30
Show Gist options
  • Save spontaneOS/c547db4e78e9944279f65ceec726e118 to your computer and use it in GitHub Desktop.
Save spontaneOS/c547db4e78e9944279f65ceec726e118 to your computer and use it in GitHub Desktop.
Launch explorer at location of and with given file selected.
# Launch explorer at location of and with given file selected.
import subprocess
subprocess.Popen("explorer /select," + "FILE_PATH")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment