#7543
Support 3
Participant

Use the keyword call to execute a method with parentheses. See below an example:

call groupwise.RunProgram(Executable, Parameters)  

I haven’t heard any executable program called “CloseGW.exe”. Do you have any additional information about this EXE (i.e folder location)?

As I said earlier, you can use Windows Script Host to sends one or more keystrokes to the active window. One of the keystrokes you can send is close window. The example below should close the current window. You need to make sure when executing the code only GroupWise window is active. Once again we don’t know the impact of the SendKeys method or closing the GroupWise from C3PO so be aware of unpredictable behavior.

Set oShell = CreateObject("WScript.Shell")
oShell.Sendkeys "%{F4}"
set oShell = nothing

Hope this helps.

Regards,
Advansys Support