I am using QGIS layer property actions. Is it possible for python to open windows explorer at a directory and then search for a custom string?
Currently I can open windows explorer at the directory I want using:
import subprocess subprocess.Popen(r'explorer /search, "D:\GIS\Infrastructure"')
But how would I search for a custom string
([%Hospital%] column in attribute file), i.e. open
D:\GIS\Infrastructure and list all files that have the word "Hospital" in (as if I was to enter "Hospital" into the search bar of the folder)