home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
BBS_UTIL
/
CHEKV104.ZIP
/
CHEKDATE.DOC
< prev
next >
Wrap
Text File
|
1994-04-03
|
10KB
|
332 lines
________
____|__ |
--| | |-------------------
| ----|-- | Association of
| | |_| Shareware
|__| o | Professionals
-----| | |---------------------
|___|___|
V1.04
**************** CHECKDATE - File Manager *******************
Written by Antonio . Ortiz
Concept by Rob Echler and Edward Tushar
C o p y r i g h t (c) 1 9 9 4
v1.04
CheckDate, Copyright (c) 1994 by Antonio Ortiz, is being distributed
as Shareware. Under this concept you may use the SHAREWARE (unregistered)
version for a reasonable period of time for evaluation after which you
must either register your copy or discontinue usage.
===============================================================================
Disclaimer:
This program and other files associated with it are not
guaranteed to be bug free or virus free. We are not
responsible for any damages of any kind, including
profit losses and data loss, that relate directly or
indirectly to this program and files. You may distribute
this program, as long as it is in unmodified with all the
files originally included.
===============================================================================
What is Checkdate?
Simply put, Checkdate will read user defined directories, check the file
date to your system date, and delete those files that are so many days old.
It will also remove that filename and description from your FILES.BBS
listing. If a file is not in the specified directory, it will simply remove
the listing from the FILES.BBS.
It will also add files that are found in the directory but not listed in
the FILES.BBS file and add them for you.
A switch has been added to allow the users of Maximus BBS software to read
the directories and number of days to delete directly from the "filearea.ctl"
file.
===============================================================================
Why was it created?
Two Sysops, Rob Echler and Edward Tushar, sat down and said they needed
a program that could look at a certain directory and delete files that were
so many days old. This small beginning led to some minor improvements such
as a configuration file to define the directory list, a log file so you know
what was deleted and any other status messages, the ability to set the
number of days back to delete files, and the ability to remove the file and
description from the FILES.BBS to keep it up to date!
===============================================================================
Requirements:
* A computer
* Files that need to be deleted
===============================================================================
Files Needed:
* CHEKDATE.EXE - The executable program
* CHEKDATE.CFG - The configuration file
======================NON-MAXIMUS BBS SETUP===================================
The following configuration is for people that don't use MAXIMUS BBS software
list the directories in the configuration file. This will also work on
Maximus BBS software.
[SEE SAMPLE CONFIGURATION FILE]
[CONFIG]
NAME=(NAME HERE IN ALL CAPS
REGS=(REGISTRATION NUMBER
LOGG=C:\BBS\BBS\LOG\CHEKDATE.LOG
FILE=FILES.BBS
[DAYS/DIRS]
10 C:\BBS\ZBBS\BBS1\
15 C:\BBS\ZBBS\BBS1\BBS11\
20 C:\BBS\ZBBS\BBS1\BBS12
25 C:\BBS\ZBBS\BBS2\
30 C:\BBS\ZBBS\BBS2\BBS21
35 C:\BBS\ZBBS\BBS3\
40 C:\BBS\ZBBS\BBS3\BBS31
45 C:\BBS\ZBBS\BBS3\BBS32
50 C:\BBS\ZBBS\BBS3\BBS33
[NOADD]
FILES.DAT
FILES.DMP
FILES.IDX
[REMARKS]
THIS MUST BE PLACED JUST PRIOR TO THE [END] STATEMENT.
[END]
Note MAY MAY EMPTY spaces after the equals sign (=) and the information
following it!
There has been a couple new features added to the configuration file
place the keyword [noadd] at the bottom of the file with a
list of files you DO NOT want the /a (add) switch to add files to
the files.bbs file that are in the directory, but not in your
file.bbs file. A sample follows plus there is an example
in the sample *.cfg files that come in this archive.
[NOADD]
FILES.IDX
FILES.DMP
FILES.DAT
========================= SPITFIRE SETUP ===============================
The following configuration is for people that use SPITFIRE BBS software
list the directories in the configuration file.
[SEE SAMPLE CONFIGURATION FILE]
[CONFIG]
NAME=(NAME HERE IN ALL CAPS
REGS=(REGISTRATION NUMBER
LOGG=C:\BBS\BBS\LOG\CHEKDATE.LOG
FILE=SFFILES.BBS
[DAYS/DIRS]
10 C:\BBS\ZBBS\BBS1\
15 C:\BBS\ZBBS\BBS1\BBS11\
20 C:\BBS\ZBBS\BBS1\BBS12
25 C:\BBS\ZBBS\BBS2\
30 C:\BBS\ZBBS\BBS2\BBS21
35 C:\BBS\ZBBS\BBS3\
40 C:\BBS\ZBBS\BBS3\BBS31
45 C:\BBS\ZBBS\BBS3\BBS32
50 C:\BBS\ZBBS\BBS3\BBS33
[NOADD]
FILES.DAT
FILES.DMP
FILES.IDX
[REMARKS]
THIS MUST BE PLACED JUST PRIOR TO THE [END] STATEMENT.
[END]
Note MAY MAY EMPTY spaces after the equals sign (=) and the information
following it!
There has been a couple new features added to the configuration file
place the keyword [noadd] at the bottom of the file with a
list of files you DO NOT want the /a (add) switch to add files to
the files.bbs file that are in the directory, but not in your
file.bbs file. A sample follows plus there is an example
in the sample *.cfg files that come in this archive.
[NOADD]
FILES.IDX
FILES.DMP
FILES.DAT
===========================MAXIMUS BBS SETUP==================================
The following setup is for users of MAXIMUS BBS software.
[CONFIG]
NAME=
REGS=
LOGG=C:\BBS\ZBBS\LOG\CHEKDATE.LOG
FILE=FILES.BBS
MAXI=C:\BBS\ZBBS\FILEAREA.CTL <-- THIS LINE MUST BE ADDED.
[NOADD]
FILES.DAT
FILES.DMP
FILES.IDX
[REMARKS]
This must come just before the [END] statement.
[END]
You will need to make a entry in each area of your filearea.ctl file
to tell CHEKDATE how many days old you wish the files in that directory
to be. Here is an example of a filearea.ctl entry.
Area 1
FileAccess Disgrace
FileInfo Family Type Games
Download c:\max\file\games
Upload c:\max\file\uncheck
%%Days 45 <- this is the number of days you want.
End Area
REMEMBER TO PUT TWO (%%) PERCENT SIGNS IN FRONT OF THE DAYS ENTRY.
The number of days old to delete the file THIS MUST BE IN EVERY AREA
REGARDLESS OF HOW MANY DAYS YOU PLACE BEHIND IT.
The default is 30 and can only be changed in the registered version.
Note MAY BE SPACES after the EQUAL SIGN (=) and the information
following it!
Simple! Now you are ready to run!
===============================================================================
CHEKDATE can be ran with no command line parameters.
SWITCHES:
/Q OR /q
This will cause CHEKDATE to run in quiet mode, nothing will be seen on
your screen.
/P or /p
This will send all output to your printer.
/A or /a
This will allow you to add files to the files.bbs that are in the directory
but not listed in the files.bbs file, it will append a description as
(NO DESCRIPTION GIVEN). Any files entered with this switch will have the file
date reset to the current date, and will not be deleted until the number of days
listed in the filearea.ctl or chekdate.cfg.
/N
The addition of the /N switch allows you to NOT DELETE files from your
files.bbs file, use this in conjunction with the /A switch if you want to
add files but not delete any.
/W
The switch was added to allow for word wrapping when using the /A switch
this allows for file descriptions of 255 characters in length.
/T
This is the TEST mode, before running CHEKDATE on you actual directories we
suggest you use this switch, it will show you all the files it wants to delete
but will only place them in you log file. In this mode it will NOT delete
any files.
A sample batch file might be:
CLS
CD\BBS
CHEKDATE
RUNFB (To rebuild the File Database after changes are made to the FILES.BBS
CD\MAILER
MAILER
===============================================================================
Now, about registering!
Simple, the registration cost for this program is $10. The $10 will allow you
to change the number of days you wish to delete files. It will also give you
a nice feeling inside.
===============================================================================
Credits:
Rob Echler and Edward Tushar - their idea, my work!
Send suggestions or complaints to the address listed in the REGISTER.DOC
that came with this program!
Thanks!
Antonio Ortiz
==============================================================================
BUG FIXES and ADDITIONS
v1.01
Added the support for the use of Maximus BBS Filearea.ctl file.
Fixed attempting to delete files from a CDROM.
Added the /A switch to allow adding of files that are already
in the directory to the files.bbs.
v1.02
Fixed the bug allowing Maximus Users to use the backslash on the end
of the path line.
Fixed the bug of using all comment lines in the filearea.ctl file.
v1.03
Fixed a small bug that made reading the filearea.ctl file impossable.
Added the feature to not add specified files to the files.bbs file.
v1.04
Added the /W /w switch for word wrap.
Added the /T /t switch for TESTING.
Added the /N /n switch for no delete.
Made the configuration file less restrictive.
Fixed a problem using the [NOADD] feature with non Maximus
configuration.
Added the [REMARKS] feature to be added to the configuration file
just prior to the [end] label
============================================================================