home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Beijing Paradise BBS Backup
/
PARADISE.ISO
/
software
/
BBSDOORW
/
DOORTIME.ZIP
/
DOORTIME.DOC
< prev
Wrap
Text File
|
1991-09-29
|
2KB
|
43 lines
DOORTIME.COM (c) 1989,1990 Karl Schneider
S & H Engineering, Inc.
8505 Woodwick Ct.
Tampa, FL 33615
813-884-9661 voice
BBS is offline for a while
Doortime is a small and quick little program that will let you
restrict Doors or any DOS activity to a certain time period during
the day.
It compares the current time with the times entered on the DOORTIME
command line and return an ERRORLEVEL 1 if the current time is either
before or after the time 'window' selected.
Put DOORTIME at the beginning of the DOORx.BAT you want to restrict
to certain times, for example:
DOOR2.BAT >>>>
doortime 10 30 17 00
if errorlevel 1 goto sorry
cd\doors\games
somegame somegame.cfg
goto done
:sorry
echo Sorry, this door is only open from 10:30 a.m. to 5:00 p.m.>com1
:done
cd\wildcat
change the directory names and COM port to suit your system.
In the DOORTIME command line, 10 30 17 00 (SPACES REQUIRED!)
means 10:30 (a.m.) and 5:00 (p.m.). If the 'open door' crosses
over midnight, be sure you enter the starting and ending OPEN times
in the correct order, like: doortime 22 00 04 00
In your DOORS.BBS (.SCR) file you should indicate time-restricted
doors, maybe with an asterisk and a footnote to save your users from
wasting their (and your) time trying to open locked doors.
-----------------------------------------------------------------