khensonm
01-15-2001, 03:44 PM
I am trying to create a task that runs every 20 minutes under Win95, but only if a certain program "BLOB" is running. The task should pop up a window with an alert.
I know how to (1) set up a simple task (Windows equivalent of UNIX cron job?), (2)write a C/C++ program that displays a window with text, and (3) do basic DOS scripting (whatever Microsoft left of it!).
This is what I am considering doing...
- write the C/C++ program that dispays the alert box(and make an executable, of course)
- make a wrapper for "BLOB" that creates the task, runs "BLOB" (in a shell?), and, when "BLOB" finishes, delete the task
- alternatively, I could have the task existing all the time, but pop up the alert box if it sees "BLOB" running
Is there an easier way to do this? I am hoping that there is an alternative to programming the task in C/C++ -- a scripting language would be nice. Of course, a REALLY nice thing would be if Windows had an "alert" capability...
I know how to (1) set up a simple task (Windows equivalent of UNIX cron job?), (2)write a C/C++ program that displays a window with text, and (3) do basic DOS scripting (whatever Microsoft left of it!).
This is what I am considering doing...
- write the C/C++ program that dispays the alert box(and make an executable, of course)
- make a wrapper for "BLOB" that creates the task, runs "BLOB" (in a shell?), and, when "BLOB" finishes, delete the task
- alternatively, I could have the task existing all the time, but pop up the alert box if it sees "BLOB" running
Is there an easier way to do this? I am hoping that there is an alternative to programming the task in C/C++ -- a scripting language would be nice. Of course, a REALLY nice thing would be if Windows had an "alert" capability...