method tries to activate an application whose title is
does not match any titles of the running applications, then the application whose title begins with
is activated. If none of the running applications have a title that begins with
, then the application whose title ends with
is activated. If
matches the titles of more than one application, then one of the applications is arbitrarily activated.
The following VBScript code activates Notepad (assuming that an instance of Notepad is currently running).
Set WshShell = CreateObject("WScript.Shell")
Copyright 1999-2004 by Infinite Software Solutions, Inc. All rights reserved.