1.11M Members

locate file or folder in windows explorer

 
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//"')
 
0
 

hey, try the following code:

import webbrowser as wb
wb.open('C:/foldername')

Good Luck!

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