https://bugs.winehq.org/show_bug.cgi?id=38209
Bug ID: 38209 Summary: WshScriptExec's Terminate method is missing Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wshom.ocx Assignee: wine-bugs@winehq.org Reporter: ptubbytaylor@gmail.com Distribution: ---
It appears that behavior of the Terminate method, in windows, sends WM_CLOSE to some/all of the program's windows (I've had hit and miss results for which windows get a WM_CLOSE, but that could be a problem on my script's end), then waits for up to two seconds for the process to end. If the process closes during this time, it immediately returns to the caller. If, after the full two seconds, the process has not yet closed, it kills the process and returns to caller.
The ExitCode property of the WshScriptExec object does not appear to be changed from what it was previously if the process is closed through the Terminate method.