locate file or folder in windows explorer


How can i locate a file or a folder using python like some when we right click in downloaded files using firefox and open containing folder,and it opens the explorer and pre selects the file downloaded.

how can this functionaly be implemented using python standard library ?

however this code does opens the explorer for me, but doesn select the file specified..

import subprocess
subprocess.Popen('explorer "E://temp//"')

hey, try the following code:

import webbrowser as wb

Good Luck!

This article has been dead for over six months: Start a new discussion instead
Start New Discussion
Tags Related to this Article