I open folder with
Process.Start(@"C:\temp")
How can I paste some text in search box in opened folder?
CodePudding user response:
You can use the GetFiles() method, which accepts the file name as a Path, and contains an overload that allows for recursive searching using a SearchOptions enum.
CodePudding user response:
Found a solution
Process.Start(@"search-ms:displayname=Search Results in Temp&crumb=System.Generic.String:" "SomeText" "&crumb=location:C:\Temp")