Home > Mobile >  How open folder and past text in search box
How open folder and past text in search box

Time:12-14

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.

GetFiles() documentation

CodePudding user response:

Found a solution

    Process.Start(@"search-ms:displayname=Search Results in Temp&crumb=System.Generic.String:"   "SomeText"   "&crumb=location:C:\Temp")
  • Related