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
wb.open('C:/foldername')

Good Luck!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.