home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
BBS
/
CEL141.ZIP
/
CEL141C.ZIP
/
SMTBAT11.ZIP
/
SMARTBAT.DOC
< prev
next >
Wrap
Text File
|
1992-06-01
|
4KB
|
122 lines
─────────────────────────────────────────────
SmartBat.Exe Version 1.1
Written by Rasta Mon
PaperThin Software
SysOp of Nirvana
NO Stinkin NUP
713-931-7778
HST Dual
2 Nets
GIGs
─────────────────────────────────────────────
DESCRIPTION:
SMARTBAT.EXE is a little utility I wrote to overcome some flexibility
problems in Celerity 1.40's Event Execution.
SmartBat.Exe along with the EVENT.BAT file included with this package, will
allow you to run specific events on any given day of the week. If you are
familiar with Celerity then you know that you can define a time for an external
event to occur in the SETUP. This will trigger a file called EVENT.BAT at
the time you specify. HOWEVER, you cannot tell it what days to run, only
what time, which means it runs every day at the time you set, thus the need
for SmartBat.Exe
If you want specific things to run only on specific days, says for instance
you only want to back up your system on Mon, Wed, Sat, then you can use
SmartBat to get it done.
REVISION HISTORY:
Version 1.0 Initial release.
Version 1.1 Add /W switch to allow the sysop to force a 60 second delay.
Seems that Celerity 1.40 will continually execute the EVENT.BAT
file over and over as long as the DOS time hasn't changed.
----------*-----------
OPERATION:
It's so simple it's ridiculous. Just run SmartBat and it pokes the number
corresponding to the day of the week, into the Dos ERRORLEVEL so EVENT.BAT
can detect it and go from there.
Run it in your batch file AS THE FIRST COMMAND. This will set the day for
the batch file to look at. RUN IT AGAIN AT THE END OF THE BATCH FILE IF
your event.bat execution takes less than 1 minute. This will overcome an
error in Celerity that continually runs the event.bat until the DOS time
has changed.
USE THE /W switch to force a 60 second delay. this will be enough for the
DOS time (minute) to change and Celerity WILL NOT rerun the event.bat
If you don't know why I included this switch then set your event to run
right away and WATCH. If it runs real quick (like mine) you'll see Cel
run it over and over until the time changes.
Examine the included EVENT.BAT file and customize it anyway you want.
EXAMPLE EVENT.BAT:
------------------
REM run smartbat first
SMARTBAT
REM these numbers MUST be in decending order!!
IF ERRORLEVEL 7 GOTO SUNDAY
IF ERRORLEVEL 6 GOTO SATURDAY
IF ERRORLEVEL 5 GOTO FRIDAY
IF ERR.....etc etc
:SUNDAY
REM freshen the bbs backup every monday
arj f -r C:\BBSBACK\CeleBack D:\CELERITY\*.*
GOTO Bottom
:SATURDAY
REM move my old files to C: drive (offline to Celerity) every Tuesday
Xcopy D:\DOWN\GOINGOFF\*.* C:\OFFLINE\
Goto BOTTOM
:FRIDAY
...etc etc
:BOTTOM
REM Make it wait one minute
SMARTBAT /W
MAIN
EXIT
Is this easy or what? GO FOR IT.
Celerity kicks ass and is gettin better all the time.....
THIS PROGRAM IS FREEWARE AND MAY BE USED WITH ANY TYPE OF APPLICATION YOU WISH
TO INCORPORATE IT INTO. DISTRIBUTE AND MODIFY FREELY. SOURCE CODE INCLUDED.
END OF DOCUMENT