Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Automative scripts
Name: Roberto Date: May 23, 2002 at 08:12:41 Pacific
Comment:
Hi all,
This is going to be very hard to explain as i really dont know how and in what language this should be done in.
I need to create a script that runs every minute (using window scheduler) that checks to see if a certain program is running. If it is then it waits 30 seconds and then runs another program.
Name: Avi Kabizon Date: June 14, 2002 at 01:24:48 Pacific
Reply:
Hi,
I don't think windows scheduled task, supports running a script every minute, Instead, you can create a batch file which looks something like this:
@ start of batch file set PROGRAM_TO_CHECK=prog.exe set PROGRAM_TO_RUN=run.exe :check_process tlist | find %PROGRAM_TO_CHECK% if errorlevel 0 goto run sleep 60 goto check_process :run sleep 30 call %PROGRAM_TO_RUN% @ end of batch file
you'll need to make sure, you have the files: sleep.exe & tlist.exe, on the computer you're running the script from.
Summary: I'm totally a beginner at scripting, but I've written a set of batch scripts to automate FTP log retrieval from network management programs for the company I work for. Is there a way have a script ed...
Summary: Hey guys I need a script to run Gdisk off a floppy with a certain command at the beginning and then create a partition and format. An automated script basically. Anyone know how to do this? Thanks. ...