vb script to kill and start up a process - TechRepublic
Question
November 19, 2008 at 03:05 AM
coolrefche

vb script to kill and start up a process

by coolrefche . Updated 17 years, 8 months ago

Hi,

I have been tasked to write a vb script however I have never written anything in vb hence need your help.

the script needs to do the following:

– check if a process if running
– if it does, sleep for one hour
– after 1 hour check again if the process is running, kill it if it does
– wait for it to die,
– start it up (log on using username and password)
– wait for it to start up
– if it is not running after 1 hour then start it up (log on using username and password)
– wait for it to start up
– log all above events/activities

process must use interactive log on hence should always appear as running in the list of process.

hope you can help… anything will do as i am not familar with vb.

thanks in advance.

refche

This discussion is locked

All Comments