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:

Command, run command - WshShell.Run
Equivalent Windows CMD command: START - Start a program or command



Back to the Top

© Copyright SS64.com 1999-2012
Some rights reserved