reckoner
reckoner

Reputation: 2981

Using Python COM to select files in windows explorer?

Is it possible using Python COM to select files inside of the windows explorer? For example, I am trying to get all "*.txt" files inside of windows explore highlighted without having to select them with the mouse, or without other keyboard gymnastics.

thanks in advance.

Upvotes: 1

Views: 693

Answers (1)

Meitham
Meitham

Reputation: 9670

I am not sure if this useful for you, but you might be able to register a pyhook module and make it listen to which window you are selecting, once you get the path then you can process it with python listdir()

http://sourceforge.net/apps/mediawiki/pyhook/index.php?title=Main_Page

Upvotes: 1

Related Questions