tyoung5
January 5th, 2011, 02:21 PM
Sorry in advance if this is posted in the wrong forum. I'm trying to write a CMD file to be run once a minute with windows scheduler. I have some recent experience programming in VBA (under Excel), but have never written a (complex) CMD file. Below is a pretty good explanation of the logic (uploaded in TXT also). I'd appreciate if someone would get me started in the right direction (or write the whole thing if you want!) I'd use that as a learning tool too.
IF "particular web pages" ARE NOT being visited
OR particular processes ARE NOT running
AND "MyEXE" IS NOT running THEN
GOTO END
ELSE
IF "particular web pages" ARE being visited
OR particular processes ARE running
AND "MyEXE" IS running
GOTO END
ELSE
IF "particular web pages" ARE being visited
OR particular processes ARE running
AND "MyEXE" IS NOT running THEN
RUN "MyEXE"
ELSE
IF "particular web pages" ARE NOT being visited
OR particular processes ARE NOT running
AND "MyEXE" IS running THEN
STOP "MyEXE" REM[ by command line switches...not process end]
SET resulting "MyEXE" file atribute to hidden
ENDIF
END
IF "particular web pages" ARE NOT being visited
OR particular processes ARE NOT running
AND "MyEXE" IS NOT running THEN
GOTO END
ELSE
IF "particular web pages" ARE being visited
OR particular processes ARE running
AND "MyEXE" IS running
GOTO END
ELSE
IF "particular web pages" ARE being visited
OR particular processes ARE running
AND "MyEXE" IS NOT running THEN
RUN "MyEXE"
ELSE
IF "particular web pages" ARE NOT being visited
OR particular processes ARE NOT running
AND "MyEXE" IS running THEN
STOP "MyEXE" REM[ by command line switches...not process end]
SET resulting "MyEXE" file atribute to hidden
ENDIF
END