> *Script If (anywindow("C:\*"))
> *Window Close ("C:\*")
> else
> exec explorer2 C:\path1
> exec explorer2 C:\path2
> exec explorer2 C:\path3
> endif
> 
> The problem is that after the script closes the windows, I can't 
run
> it again.  

I am not sure what you mean by "I can't run  it again.".  Do you get 
an error message?  Which one?  Or does it just not do what you 
expect?  If so, what do you expect and what actually happens?

In any event, the following worked for me, assuming \ is your escape 
character (ie you are using the standard configuration:

Script If (anywindow("C:\\*"))
*Window Close "C:\*"
 else
exec explorer2 C:\path1
exec explorer2 C:\path2
exec explorer2 C:\path3
endif

The confusing fact is that anywindow("...") involves an expression 
so that the \ must be escaped.  Window close is written in the old 
command format so you don't need parenthesis or escaping \.

The following also works, re-written to use dot format for commands, 
for consistency.  I also used ?" " to avoid having to escape the \.
If (anywindow("C:\\*"))
Window.Close ("C:\*")
else
exec.explorer2(?"C:\path1")
exec.explorer2(?"C:\path2")
exec.explorer2(?"C:\path3")




Also, I see that explorer.exe remains as a subprocess of
> Powerpro.


I am not sure what you mean by this and what tool you are using to 
make this determination.





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to