1,105,242 Community Members

locate file or folder in windows explorer

Member Avatar
Junior Poster
191 posts since Sep 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]

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//"')
Member Avatar
Junior Poster in Training
70 posts since Jul 2009
Reputation Points: -3 [?]
Q&As Helped to Solve: 4 [?]
Skill Endorsements: 8 [?]

hey, try the following code:

import webbrowser as wb

Good Luck!

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