--- In [email protected], "schifo911" <[EMAIL PROTECTED]> wrote:
>
> Does anybody have an idea on how I can launch an explorer search window
> searching in a specified directory (C:\temp) for a file which
> contains "ABC" in the file? Is there a Windows Run command that will
> help me accomplish this?
>
> I want the window to open up and already be searching for a specified
> value in a specified dir from a powerpro script.
Try the following. I used the classname c=CabinetWClass, but better
replace it with the caption/title name like "Find Files" or whatever.
And, as I used Wait.Until(), don't run the script from other script,
or replace it with Wait.For(), but then you may have to adjust further
the wait conditions.
The usage is
.FindFiles(sPath, sFile)
E.g., .FindFiles(?"C:\Program Files", ?"*.txt")
------------------- FindFiles.PowerPro -------------------------------
Function FindFiles(sPath, sFile)
Exec.FindFiles(sPath)
Wait.Until(5000,anywindow "c=CabinetWClass")
Win.ChildHandlelist("c=CabinetWClass","c=Edit");;+
.Word(2).SetText(sFile).PostMessage(256,13)
----------------------------------------------------------------------
Sean