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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

determine if a process is running?

Status
Not open for further replies.

astubbs

IS-IT--Management
Oct 15, 2002
1
US

Is it possible to use VB script to determine if a process is running (a check before executing a program)?
 

This might help. If I was doing this from dos and had tlist from the res kit i'd do something like

for /f "tokens=2" %%a in ('tlist ^|find "SERVICENAME"') do set service=%%a
if %service% == SERVICENAME then goto running
do something
:running

If you can issue the right shell command to make the above work in dos and set the variable in a way you can get it back into your script it might work.

I'm more familiar with dos than VBS sorry.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top