Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wshshell.run

Status
Not open for further replies.

Jay2003

Programmer
Feb 26, 2003
147
GB
Hi,

I have managed to pop a client application using the wshshell.run command.

I was now wondering if it is possible to instead of starting a new application/process, If the VBScript could interogate the client PC to see if the app is already running and if so then maximise and bring to focus.

Any feedback would be great,
Thanks

Jason
 
You may consider the WshShell.AppActivate method.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Thanks PHV, However this only focus's if the application is in the background, If it is minimised then it doesn't pop. Did a bit of searching and it seems that this isn't available. Is that correct.

Rgds

Jason
 
Another way is to use WMI to get all the running process.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top