home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 19
/
CD_ASCQ_19_010295.iso
/
vrac
/
dfiles26.zip
/
DOFILES.DOC
< prev
next >
Wrap
Text File
|
1994-11-16
|
8KB
|
167 lines
Do Files
=================================================================
This archive should contain the following files:
DOFILES.EXE............... Actual program
DOFILES.DOC............... Documentation
FILE_ID.DIZ............... BBS description file
READ.ME................... Update information
HUCKABEY.TXT.............. Current list of James Huckabey
software
SOFTWARE.TXT...............Information on shareware theme
ARCHIVE.TXT............... This list of files
Since I do a lot of file trading I found I needed something
to do archiving automatically for me and more fancy than just a
batch file. I do not like archives that contain a number of like
files, that is, ROL, MOD, GL, FLI, etc., or even archived under a
different name than the contents. I always rearchive files using
the same name as the contents: MUSIC.ROL becomes MUSIC.ZIP,
WOW.FLI becomes WOW.ZIP. I get in hundreds of files at a time,
some times thousands. Hence DOFILES.EXE was developed.
The program is nothing fancy but it saves me a lot of key
strokes. It will work for any file extension except a blank
extension. Not sure I am ever going to change this limitation and
do not foresee myself archiving a lot of files with no
extensions.
Starting with v2.5 the program now turns off the "read only"
archive bit using DOS' ATTRIB.EXE program. I did this because,
perhaps like me, some people might be copying files off of a CD-
ROM disc and archiving them to send to others. These files are
normally set to "read only." This way the receiver(s) of the
file(s) does not get "read only" files. This is to save the
hassal of not being able to delete them, etc.
I have just found out during the testing of v2.5 that if you
use the DOS Copy command, at least with DOS 6.2, that DOS turns
off the "read only" attribute during the copy process. I have no
idea if DOS did this on earlier versions. Good ole Microsoft
should have left the attribute bits alone. I have always used X-
Tree for copying files and it does nothing with the archive bit
during the copy process.
DoFiles can process up to 2000 records at one time. It uses
PKZIP.EXE (copyright PKWare) to do it's archiving and it must be
somewhere in your path. It uses PKZIP's maximum compression when
creating the archive using the command line options "-a -ex."
While archiving with the following extensions a FILE-ID.DIZ
file is generated. It is then added to the archive with the
following contents (after the equal sign):
AU = AU (Sun) sound file
AVI = AVI animation file
BMP = BMP graphic image
CMF = CMF sound file
CUT = CUT graphic image
DL = DL animation file
FLI = FLI animation file
GIF = GIF graphic image
GL = GL animation file
IMG = IMG graphic image
JPG = JPEG animation file
MAC = MACintosh graphic image
MID = MIDI sound file
MOD = MOD sound file
MOV = MOV/QT animation file
MPG = MPEG animation file
MSP = MSP graphic image
MUS = MUS sound file
PCD = PCD (Kodak) graphic image
PCX = PCX graphic image
QPG = QPEG animation file
RLE = RLE graphic image
ROL = ROL sound file
SND = SND sound file
TGA = TARGA graphic image
TIF = TIFF graphic image
VOC = VOC sound file
WAD = WAD game file
WAV = WAV sound file
If there are any other extensions that I have missed please
contact me so I can add them to the program. I will add new ones
as I find them. The first release with this new feature has 29
file extensions. The descriptions are nothing fancy and I am sure
many sysops will appreciate even these simple descriptions. Many
BBS programs extract the FILE_ID.DIZ information and use it for
the description on uploaded files. I have one in all my own
software that I release to the general public (see the DoFiles
archive for it's copy).
All you have to do is unarchive files or copy them from
other directories or diskettes, change to that [drive]directory
and do the following:
Syntax: DOFILES ext [destination directory]
Where "ext" is the file extension you are working with.
Currently the program only works from the current directory,
which might be changed in a future release. Just easier to do it
this way since it reduces mistakes. The "destination directory"
is optional and if not used the archived files are written to the
current directory.
The program searches the directory for all "ext" files,
sorts the file names and then as it archives each file it checks
the destination location for the finished archive. If the archive
exists then and only then does it erase the original file in the
current directory. That way as it archives a file it then erases
the unarchived file freeing up hard drive space. Besides that the
original file is not needed if it is archived. You can always
unarchive the file(s).
DOFILES ROL D:\ROL
This will archive all the *.ROL files in the current
directory and write them to D:\ROL deleting each *.ROL file in
turn after confirmation of archive.
DOFILES MOD
This will archive all *.MOD files in the current directory,
writing them to the current directory, and delete each *.MOD file
in turn after confirmation of archiving.
As the program is running it displays the file (record)
number it is working on, actual file name, and if a FILE_ID.DIZ
is generated that information is also displayed. When the program
is finished with all files it displays the start and end times to
show you how long it took. The archiving can be lengthy depending
on the size and number of files, memory size, system and hard
drive speeds.
From the Author
I am not asking for any money for this program. It is
Freeware! If you insist on sending me something for my time and
effort as well as encouragement in writing other programs the
contribution will not be refused and will be greatly appreciated,
but it is not necessary. It is my hopes that you find this
program useful. If you have questions or suggestion please write.
If you expect a reply please include return envelope and postage.
James Huckabey
3621-A Fraser Street
Bellingham, WA 98226-2473 U.S.A.
(206) 671-2868 (voice, Pacific)