[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 265
  • Last Modified:

VB Script to monitor wether a window on a client is running or not.

I am looking for a VB script that I can use to query a client to see if a certain window is open and return an exit code based on the results.  I have found these for services and processes but I need one to check windows. Can anyone help?
0
mingo3369
Asked:
mingo3369
  • 2
1 Solution
 
dlwyatt82Commented:
I don't know of a way to do this with the libraries natively available to VBScript, but it can be done with AutoIt.  www.autoitscript.com/autoit3
0
 
lojk.Net and Infrastructure ConsultantCommented:
Windows Management Instrumentation is the only possible way to do this from VBscript, in fact im *sure* ive seen it done.

However you may find it simpler and quicker to write a miniapplication in vb.net to do the job for you... All you need is .net installed and the executable itself so its still fairly portable.
0
 
lojk.Net and Infrastructure ConsultantCommented:
so what did you do in the end then? Theres loads of WMI examples out there, guessing you used that?
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now