home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- A I W A I T
-
-
- Artificial Intelligence File Detection Delay
-
-
- Release 1.0 12/20/90
-
-
-
-
-
-
- From: PHANTASM Software
- By: Keith Luken
-
-
-
-
-
-
-
-
-
-
-
- (C)opyright 1990 PHANTASM Software
-
-
-
-
-
-
- SUMMARY
-
- AIWAIT is a utility that has many uses. In its basic form AIWAIT will
- periodically check foe the existence of a file you pass to it. Upon
- detection of the file AIWAIT will proceed to do whichever function you
- have told it to perform. AIWAIT is ideal in BBS and or LAN enviornments
- where one system is waiting for an indication from another that it is ok
- to proceed. AIWAIT is flexible in that you tell it what to do if the
- file is found and what to do if it not. You also tell AIWAIT how often
- to look for the target file and or the maximum time to look for it.
- AIWAIT works with options you pass it as command line switches. The
- following switches provide the following functions and will be explained
- in deatil.
-
- /F: The path/file to check for
- /R: The command to be executed if the check file is found (Optioanl)
- /C: The command to be executed if check file is NOT found (Optional)
- /D: Number of seconds between file checks (Optional)
- /M: Maximum number of minutes to keep checking (Optional)
-
- All but the FILE to check for are optional. If the /R: and /C: switches
- are not included then AIWAIT just ends when file is or isn't found, thus
- it would be ideal for ending a batch file. If /D: is not included then
- the default will be 30 seconds. IF /M: is not included then AIWAIT will
- not time out and will continue checking until found or any key is hit.
-
-
- Examples:
-
- AIWAIT /F:alldone.txt /D:10 /R:reboot.com /M:15
- AIWAIT will check every 10 seconds for a file call ALLDONE.TXT
- and when found will execute REBOOT.COM. If the file is not found
- in 15 minutes then AIWAIT will end.
-
- AIWAIT /F:c:\alldone.txt /D:60 /R:reboot.com /C:event.bat /M:10
- AIWAIT will check every 60 seconds for a file C:\ALLDONE.TXT for
- up to 10 minutes and if found will execute /R:reboot.com and if
- NOT found then EVENT.BAT will be run.
-
- AIWAIT /F:alldone.txt /C:event.bat /M:20
- AIWAIT will check every 30 seconds(DEFAULT) for file ALLDONE.TXT
- for up to 20 minutes and if found will just end. If file is NOT
- found in 20 minutes then EVENT.BAT will execute.
-
- AIWAIT /F:alldone.txt /R:reboot.com
- AIWAIT will check every 30 seconds(DEFAULT) for file ALLDONE.TXT
- and when found will execute REBOOT.COM. AIWAIT will wait forever
- unless a key is hit unless the file is found.
-
-
- (C)1990 PHANTASM Software
-
-
-
- USAGE
- Upon exiting AIWAIT the DOS ERRORLEVEL is set based on AIWAITS outcome
- as follows:
- 1 User aborted
- 2 Check file NOT found within timeout period
- 3 Check file found
- 4 Check file name not provided, AIWAIT aborted
-
- Hitting any key while AIWAIT is running will cause it to end the next
- time it checks for the file. AIWAIT executes the commands you tell it to
- by stuffing the keyboard buffer upon termination. This is important
- since if you call AIWAIT from within a batch file then the what it try
- to execute will not occur until after the batch file that called it.
- Also if you have it set up to just end then if it was called from within
- a batch file then that batch file will continue. AIWAIT also clears the
- keyboard buffer when it runs thus anything you type ahead will be lost.
- I wrote this utitlity to help rebooting my 3 system BBS LAN more
- flexible during it's daily event. I think I included enough options to
- make everyone happy to allow batch files to be even more flexible, if I
- get some demand for it.
-
- DISCLAIMER
- The usual legal stuff here, the author CAN NOT and WILL NOT be liable
- for any damge caused by the USE or MISUSE of this software. Not warranty
- is either expressed or implied.
-
- SUPPORT
- I provide this utility FREE of charge and only ask that if you use it
- and find it helpful that you pass it along and tell people about my BBS.
- The latest copy of this and other helpful utilties can be found on
- PHANTASM BBS 908-291-2302(USR DUAL) or 908-291-4134(HAYES ULTRA).
- If you have any comments(good or bad) on this software I would like to
- hear them so please call! If you have any problems using it feel free to
- call my BBS and ask for help!
-
-
-
-
-
- (C)1990 PHANTASM Software
-
-