Home NT WSH
WshShell.AppActivate

Activate a running command.

Syntax 
     WshShell.AppActivate strTitle

The AppActivate method tries to activate an application whose title
is the nearest match to strTitle. 

e.g. 
Activate Notepad (assuming Notepad is already running).

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

 

The odds against there being a bomb on a plane are a million to one, and against two bombs a million times a million to one. Next time you fly, cut the odds and take a bomb." - Benny Hill

Related commands:

Command, run command - WshShell.Run

Equivalent Windows NT command:

START - Start a separate window to run a specified program or command



Back to the Top

Simon Sheppard
SS64.com