home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frostbyte's 1980s DOS Shareware Collection
/
floppyshareware.zip
/
floppyshareware
/
GLEN
/
1ADAY-20.ZIP
/
1ADAY.DOC
< prev
Wrap
Text File
|
1991-07-22
|
3KB
|
87 lines
July 21, 1991
1ADAY.COM
Daily Event Controller
Version 2.0
(Shareware)
The idea for 1ADAY.COM came from the July, 1991 PCComputing
DOS column titled "Get Your PC Chores Done Once a Day, Every Day"
which outlined a method to trick a batch file into running a task
just once a day. The method involved creating three batch files
and a special directory, something I thought could be programmed
much more elegantly in C than in DOS's batch language. 1ADAY.COM
doesn't use any batch files, no pesky zero-length files to hold
information, no special directories, or does it require any
expertise from you other than the ability to modify your
AUTOEXEC.BAT file slightly.
I like to run CHKDSK once a day on Computasaurus, my old,
steam-powered XT clone. But CHKDSK got a little time consuming
every time I rebooted, which could be several times a day. Now I
have added this line to AUTOEXEC.BAT:
1ADAY CHKDSK/F
1ADAY finds the system's current date and compares it to
it's own file date. If they are different, 1ADAY then runs CHKDSK
and then modifies the file date.
If you run more than one file once a day, say CHKDSK and a
virus scan, 1ADAY (V 2.0) will accept multiple arguments on the
command line:
1ADAY CHKDSK/F A:\DOS\VIRUSHIELD
In fact, 1ADAY will run as many programs that you can squeeze on
to the command line (each argument separated by a space). If this
isn't enough then you can list all of the programs you need in a
batch file and call the batch file from 1ADAY.
On the first boot of the day, you will see a copyright
message followed by
---- Running [PROGRAM] from 1ADAY.COM ---
This message will be repeated before each program you have listed
on the command line is executed.
On subsequent boots, you will see the copyright message
followed by
---- Same day reboot. Skipping [PROGRAM 1] ----
---- Skipping [PROGRAM 2] ----
and so on through the list of programs you use once a day. Then
the next event in your AUTOEXEC.BAT file is executed.
A cautionary note: DO NOT CHANGE THE NAME! A rose by any
other name would smell just as sweet, but 1ADAY.COM just won't
work if you change the name.
Another cautionary note: 1ADAY.COM expects to find itself in
the same directory as AUTOEXEC.BAT.
And a couple of notes on 1ADAY.COM's idiosyncrasies: If your
session at the PC runs after midnight and you reboot, 1ADAY.COM
will notice the date change and do it's daily "thing". 1ADAY.COM
only checks the current day, so if you only use your PC once a
month on the same day, this will be treated as a same-day reboot.
If you experience any problems or have any suggestions for
improvements, please let me know. I can be reached on:
CompuServe 73537,643
GEnie CWWHITE
or much more slowly by mail at the address below.
1ADAY.COM is shareware. If you use 1ADAY.COM please send $10.00
to:
Chris White
5412 Wallingford Arch
Virginia Beach, VA 23464
1ADAY.COM Copyright (c) Chris White 1991. All rights reserved.