| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | check current time against a list |
Hallo Ben,
BD> i need to create a btm witch will only run a program if the current time
BD> has an [space]x or [space][space] next to it in a file there is also a
BD> random diference in the lenth of time between eatch entry
BD> ie
BD> 6:00-6:10 netmail
BD> 6:10-6:45 xxxfree for all xxx
BD> 6:45-7:00 echo mail
BD> 7:00-7:15
BD> basicly i need to the batch file to consult the file and run only if the
BD> current time is within the 2 or 4th entry this isn't the whole
BD> file and there are loads of these gaps whitch can be as small as
BD> five minuets in lenth
While this an easy job for a 4DOS btm, there's a downside to it: you will
have this btm running all the time, consuming considerable resources if run
under Win95, or find some other means to call a shortened version every
minute. On the other hand, this may be of no consequence if run under plan
DOS. But you should consider this before you start.
To your btm: I take it that the time-file has a structure _exactly_ as
shown above (beginning in row 0, no spaces within the time segment). Then
you could do something like the following TEST.BTM / TEST.DAT. To avoid
mangling by FIDO mailers I have zipped and uuencoded them together:
TEST.ZIP
begin 644 Test.zip
M4$L#!!0````(`)&`D25A&Q\*3{at}```%P````(````5$535"Y$050SLS(PT#6S
M,C10R$LMR4W,S.'E`O&`0B:F"A45%6E%J:D*:?E%"HDY.2`^2-K$5-< * Origin: ERROR reading FAT table! Try the SKINNY one (Y/N)? (2:2449/236.1005)SEEN-BY: 396/1 632/0 371 633/260 262 267 270 371 635/444 506 728 639/50 252 @PATH: 2449/236 200 150 24/888 396/1 633/260 635/506 728 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.