home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
t
/
tmc11.zip
/
TMC.DOC
< prev
next >
Wrap
Text File
|
1993-01-03
|
9KB
|
227 lines
TodayMonthChange (TMC) Version 1.1 01/03/93 Page 1
DISCLAIMER . . . . . . . . . . . . . . . . . . . . . . . . . 1
LICENSE . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . 2
TMC.EXE OPERATIONS . . . . . . . . . . . . . . . . . . . . . . 2
TMC.CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
INSTALLATION . . . . . . . . . . . . . . . . . . . . . . . . . 3
REVISION HISTORY . . . . . . . . . . . . . . . . . . . . . . . 3
REGISTER FORM . . . . . . . . . . . . . . . . . . . . . . . . 4
DISCLAIMER
This software is provided without any guarantee, either expressed or
implied. All responsibilities for its use rest with the user of the
software and not the author. The author makes no warranties with
respect to this program as to its usability, safety to data, or any
results deriving from its use, and accepts no responsibility for any
loss or damages directly or indirectly caused by using it.
TMC software and this document are (C) Copyright 1992-1993
by Cam DeBuck. All rights reserved World Wide.
LICENSE
TMC is not in the Public Domain. TMC is not free.
Non-registered users are granted a limited, 30-day license to determine
whether or not the program meets their needs. Continued use of TMC
beyond the 30-day evaluation time period requires registration of the
program. Use of non-registered copies of TMC beyond the original
evaluation period is strictly prohibited. No one may modify TMC for
any reason, in any way, including but not limited to decompiling-
compiling, patching, disassembling, or reverse engineering the program.
TMC may be copied and distributed to others, subject to the above
restrictions and the following:
* TMC must be copied in unmodified form, including the file
containing this license information.
* Complete TMC documentation must be included.
* No copying fee of any type may be assessed other than basic
charges for the cost of the copying medium.
* TMC may not be distributed with any other software or
hardware product(s) without the express written permission of
Cam DeBuck.
SysOps (bulletin board System Operators) may make TMC available for
downloading by their users as long as all above conditions are met.
Commercial Distributors of Public Domain, ShareWare, or User Supported
software may distribute TMC subject to the above conditions only after
obtaining specific written permission from Cam DeBuck and filling out
a registration form for upgrade notifications. This condition
supersedes any and all previous agreements.
TodayMonthChange (TMC) Version 1.1 01/03/93 Page 2
INTRODUCTION
This program is designed to automatically erase the previous month's
TODAY.MON data file, where MON is one of JAN FEB MAR ...... DEC, and
then unzip the appropriate TODAY.MON data file. The DAY906 files when
fully unzipped take over 3 megs of disk space for all twelve months,
with this program you can reduce that space requirement to the 300k
range for just one month at a time. TMC makes use of the Registration
Key System for Programmers.
TMC.EXE OPERATIONS
1. When run on the 1st day of the month, deletes the previous months
TODAY.MON if it exists. Calls PKUNZIP to extract the current months
data file. All error handling on the extract is handled by PKUNZIP.
Exits with errorlevel set to 1.
2. Sets DOS error level to day of the month if not the 1st and no
optional month command line paramater was passed to the program.
Handy if you need to run a program on a particular day of the month.
With the errorlevel check you can determine which day of the month it
is, TMC always returns the day of the month when run without a
command line parameter.
3. When optional month command line paramater is passed; checks for a
valid month in the 1 thru 12 range, deletes the month prior to the
valid month. Calls PKUNZIP to extract the option month data file.
Exits with errorlevel set to zero, since this would not normally be
a batch operation.
Sample TMC.CFG
---------------
Cam DeBuck
0
d:\today
e:\bbsfiles\day906-1
e:\bbsfiles\day906-2
e:\bbsfiles\day906-3
e:\bbsfiles\day906-4
e:\bbsfiles\day906-5
e:\bbsfiles\day906-6
----------------
Line 1: Registration Name (Case sensitive)
Line 2: Registration CRC
Line 3: Drive and path for extracted data files (TODAYBBS)
Line 4: Drive and path to zip file containing Jan & Feb data
Line 5: Drive and path to zip file containing Mar & Apr data
Line 6: Drive and path to zip file containing May & Jun data
Line 7: Drive and path to zip file containing Jul & Aug data
Line 8: Drive and path to zip file containing Sep & Oct data
Line 9: Drive and path to zip file containing Nov & Dec data
TodayMonthChange (TMC) Version 1.1 01/03/93 Page 3
INSTALLATION
The mandatory config file ( TMC.CFG ) must be located in the current
directory that you run TMC.EXE from. The config is not searched for.
You may place TMC.EXE into any directory that is in your DOS path or it
may be run passing the EXE path on the command line, or lastly, it is in
the current directory.
NOTE: TMC v1.0 users MUST Delete TMC.COM, DOS will always execute the
COM file if it finds it in the same directory with the EXE
To use TMC to see if it is the 15th of the month use the following stub
in a batch file.
TMC
if errorlevel 15 if NOT errorlevel 16 goto fifteen
The above line translates to:
If errorlevel is greater than or equal to 15 and errorlevel is less than
16 then do it. By changing the numbers you could check for a range of
dates.
To check for range of 20th to 25th.
if errorlevel 20 if NOT errorlevel 26 goto twenty
TMC 1
The above would delete TODAY.DEC from the dir path pointed to in line 3
of TMC.CFG, extract TODAY.JAN from the zip file pointed to in line 4 and
place it into the dir path found in line 3.
REVISION HISTORY
v1.0 - Initial release - 08/08/92
v1.1 - Correction automatic January processing
- Addition of Registration Key System for Programmers
I have tested this program with DOS 5.0, DV and a 5 node Lantastic
system without detecting any problems, but as with any software, wide
variations in system configurations can sometimes cause unexpected or
unforseeable results.
If this program is useful to you, a modest fee of $5.00 would be in order.
I may be contacted at the address shown below, by message in the U'NI
network or MSI Headquarters BBS.
Any bug reports, comments or suggestion are solicited and welcome!
Thanks,
Cam DeBuck
230 Medford Drive
Fayetteville, GA 30214-1948
TodayMonthChange (TMC) Version 1.1 01/03/93 Page 4
TMC REGISTRATION FORM
-----------------------
(Please type or print) Date: _____________________
First name: _________________________ Last: ______________________________
Address: _____________________________________________
_____________________________________________
City: ________________________ State/province: _________________
Country: ________________________ ZIP/postal code: _________________
Where did you find TMC? ___________________________________________________
Registration Name:_________________________________________________________
(Case SENSITIVE!)
TOTAL amount enclosed $ 5.00
*****************************************
* Payment must be check or money order. *
*****************************************
Comments: _________________________________________________________________
_________________________________________________________________
Write check or money order out for $5.00 to Cam DeBuck and send to:
Cam DeBuck
230 Medford Drive
Fayetteville, GA 30214-1948
Please Allow 15 work days for your registered CRC to arrive in the mail.
Thanks.
All orders are rushed!