Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project











Method:  WshShell.AppActivate

WshShell.AppActivate strTitle

The AppActivate method tries to activate an application whose title is strTitle. If strTitle does not match any titles of the running applications, then the application whose title begins with strTitle is activated. If none of the running applications have a title that begins with strTitle, then the application whose title ends with strTitle is activated. If strTitle 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).

Code:
Set WshShell = CreateObject("WScript.Shell")
WshShell.AppActivate "notepad"


 


Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information