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 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 3000 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 equal sign: AU = AU (Sun) sound file AVI = AVI (Windows) video file BMP = BMP (Windows) graphic image CMF = CMF sound file CUT = CUT (Dr Halo) graphic image DL = DL (Davide/Luca [DL-VIEW]) animation file FLC = FLC animation file FLI = FLI (Autodesk) animation file GEM = GEM (Ventura) graphic image GIF = GIF (CompuServe) graphic image GL = GL (Grasp) animation file IMG = IMG (Ventura) graphic image JPG = JPG (JPEG) animation file LBM - LBM (Deluxe Paint II) graphic image MAC = MAC (Macintosh) graphic image MAP = MAP (Fractint) data file MID = MID (Midi) sound file MOD = MOD sound file MOV = MOV (QuickTime) animation file MPG = MPG (MPEG) animation file MSP = MSP (Microsoft Paint) graphic image MUS = MUS sound data file PAR = PAR (Fractint) data file PCD = PCD (Kodak) graphic image PCX = PCX (Zsoft) graphic image PIC = PIC (Pictor/PC) graphic image QPG = QPG (QPEG) animation file RLE = RLE graphic image ROL = ROL sound file SCF = SCF (ColoRix/EGA Paint) graphic image SND = SND sound file TAB = TAB (Guitar Tabulation) sheet music file TGA = TGA (True Vision) graphic image TIF = TIF (Tiff) graphic image VOC = VOC (Sound Blaster) sound file WAD = WAD game data file WAV = WAV (Windows) sound file WPG = WPG (Word Perfect) graphic image WRK = WRK (Cake Walk) sound file If there are any other extensions, or descriptions, that I have missed (or don't know) please contact me so I can add them to the program. I add new ones as I find/learn them. The descriptions are nothing fancy and I am sure many sysops 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 archives 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 drive\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). WARNING - Only the chosen extension files are deleted. Others with the same file name, but different extensions, are not deleted. You must do this manually! 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. ******* WARNING ******* It is possible that all files required by whatever is being archived might not be included. Starting with v3.0, files starting with the same name are being added to the archives. Example: (FLI) EXAMPLE.FLI, EXAMPLE.DOC, EXAMPLE.GIF. Each of these files will be added to the archive because they all have the same file names, but different extensions. It is being presumed that they belong to the same archive. Any other files are still ignored. If you want other files added to the archive(s) you will have to do this manually or use some other form of archiving or rearchiving. There are just too many other files that can be contained in an archive for my program to know which ones belong where. This is a change from version 2.9 and under. 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 be greatly appreciated, but it is not necessary. This is part of my payment to all those other authors that release freeware and public domain software. It is my hopes that you find this program useful. If you have questions or suggestion please contact me. If you expect a reply please include return envelope and postage. James Huckabey 3621-A Fraser Street Bellingham, WA 98226-2473 U.S.A. (360) 671-2868 (voice, Pacific)