Peter,

Have a look at the following and this should help you along.

FTPCHECK.BAT - This to look to see when new DAT/SuperDAT files arrive a ftp.nai.com and now has the ability to get them.

ROUTERAVAIL.BAT - This is a script to check ROUTERS at specific intervals.
  • Written for Windows NT/2K
  • This is a cleaned up version of - http://itresources.brainbuzz.com/tutorials/tutorial.asp ?t=S1TU1239&tn=Router+check&pi=S4C16&pn=95%2F98%2FNT+Batch+Files
  • During the Business Day (7A-5P M-F), it checks the ROUTERS every three minutes
  • After hours (5P-7A M-F, and Weekends), it checks the ROUTERS every ten ninutes.
  • If a router is not found, it will try three additional times immediately to insure no false alarms.
  • If the SMTP Mail Server is not found, it uses RASDIAL to send a "911" Page.
  • It is also using SLEEP from the Resource Kit as well as POSTIE.
  • It logs when a router is down and when it returns as well as messaging appropriate parties.
  • ** NEW ** Cleaned up the Time of Day check.

GETKV5.ZIP

This file contains the following two useful utilities for DOS/9x/NT/W2K:

Getkeyd.exe is a real-mode MS-DOS version that should work with any version of DOS, Windows 9x, etc. Getkey.exe is a Win32 console-mode version for Windows 9x/NT/2000 (Intel only).

DOS and Windows 9x come with a choice command, and the Windows NT/2000 resource kit also comes with a version for Windows NT/2000. This is somewhat confusing since both file are named choice.exe. The choice utility is not as flexible as getkey. Also, getkey doesn't beep every time an invalid keystroke is pressed, which this author considers annoying.

Getvard.exe is a real-mode MS-DOS version that should work with any version of DOS, Windows 9x, etc. Getvar.exe is a Win32 console-mode version for Windows 9x/NT/2000 (Intel only).

Note that Windows 2000's version of CMD.EXE supports a variation of the SET command (SET /P) that allows interactive user input for a batch file. While this approach is "cleaner" than getvar's approach (no temporary files are used), it only works for CMD.EXE in Windows 2000 and later. Also, Windows 2000's SET /P command doesn't allow you to modify a pre-existing variable; it can only overwrite an existing variable or create a new one. Getvar does not have this limitation.

HTH,

- Kent

[ 05 August 2001: Message edited by: kdyer ]

_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's