home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
-
-
- DXARC: Delete Extracted .ARC Files
-
- A Public Domain Utility by Rowland Archer
-
- Version 1.0 -- March 12, 1987
-
-
- What it Does
- ------------
-
- DXARC is used to clean up a directory by deleting the files that
- came out of archive (.ARC) files. An .ARC file is a single MS-DOS
- file that contains one or more files in a compressed format. The
- .ARC format is used on many computer bulletin board systems to
- store several related files together for transfer between
- computers over the phone lines.
-
- To use DXARC, you give it the name of a .ARC file (or a filename
- template containing wildcards) and it will:
-
- a. Look for that .ARC file, adding the .ARC extension if
- you don't provide an extension. If you give a template with
- wildcards, the following steps are performed for each file
- matching the template.
- b. Open the .ARC file and read through it
- c. For each file contained in the .ARC file:
- 1. Look in the current directory OR the directory you
- specify as the second pathname argument on the command
- line
- 2. If a file of the same name is found in the directory,
- compare its size, and time and date of creation to the
- file in the archive; if they match, DELETE THE FILE in
- the directory.
-
- THE ARCHIVE FILE IS NEVER MODIFIED, so you can't unintentionally
- delete a file that you don't have a copy of in the archive.
-
- **NOTE**: early archive formats didn't store the real file size
- inside the archive, so that test is skipped for such archives.
- The date and time of creation are checked, however.
-
- The next section details the command line used to invoke DXARC.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DXARC Utility Page 2.
-
-
-
-
- Using DXARC
- -----------
-
- The complete DXARC command line syntax:
-
- DXARC <arc_file_template>[.ARC] [<cleanup_directory>] [options]
-
- ---------------------------------------------------------------
- Notational conventions:
-
- [ ]: Square brackets surround an optional argument
- <abcd>: Angle brackets denote an object described in detail
- later. E.g., <filename> means an MS-DOS file name,
- such as MANYFILE.ARC. You don't type the <>'s when
- you use DXARC.
- ---------------------------------------------------------------
-
- <arc_file_template> Archive file name, may be simple filename,
- full pathname, or template with wildcards.
-
- This argument is required. If it is not
- supplied, DXARC types out a help screen
- and quits.
-
- Default extension .ARC is supplied if no
- extension is given.
-
- Full pathname may include drive specifier
- such as "A:".
-
- <cleanup_directory> Optional directory searched for files to
- delete. May include drive specifier.
-
- Default is current working drive and
- directory, assumed if no <cleanup_
- directory> is given.
-
- [options] Options (also known as "switches") must be
- listed singly and each one prefixed by the
- slash ("/") character.
-
- In other words, /C/F is ok, /CF is not.
-
- DXARC is liberal about placement of options
- on the command line; they may appear
- affixed to the command, either pathname
- argument, or by themselves.
-
- /C Confirm by asking (yes/no) before deleting
- each file. You must type 'Y' to delete the
- file or 'N' to not delete it.
-
-
-
-
-
-
-
-
-
- DXARC Utility Page 3.
-
-
-
- /F Force delete on matching filename even if
- there is a mismatch in creation date, time
- or file size.
-
- This may be useful for some past revisions
- of the various un-ARCHIVER utilities that
- didn't preserve the time and date when they
- extracted files, but gave them the time and
- date of the time of extraction instead.
-
- /N No deletions at all, just report what would
- be deleted.
-
- This can be used if you want to experiment
- without actually deleting any files. It
- lets you see what will happen when you run
- DXARC without the /N switch.
-
- -----------------------------------------------------------------
-
- Examples:
-
- a. DXARC DXARC.ARC Deletes any files in the current directory
- whose names, date and time stamps, and
- extracted file size match the files of
- DXARC.ARC.
-
- b. DXARC *.ARC Deletes any files in the current directory
- whose name, date and time stamp, and
- extracted file size match the files of each
- archive file (all files matching the
- template *.ARC) in the current directory.
-
- c. DXARC *.ARC A:\DIR Like (b) but searches for files to delete
- in A:\dir instead of using the current
- directory.
-
- c. DXARC *.ARC/F Like (b) but ignores the timestamp and size
- and deletes files with matching names.
-
- d. DXARC *.ARC/C Like (b) but asks before deleting each
- file. You must answer 'Y' to delete or 'N'
- to skip deleting the file.
-
- e. DXARC *.ARC/N Like (b) but doesn't delete any files; just
- reports what it finds.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- DXARC Utility Page 4.
-
-
-
-
- Sources Included
- ----------------
-
- The sources for DXARC are included so you can modify the program
- for your own use. Please don't modify and re-distribute under my
- name since I can't keep track of changes. Other than this you can
- use the code as you see fit.
-
- DXARC is written in Microsoft C 4.0 and requires a number of
- runtime libraries from that system. It also uses several
- libraries from Jack A. Zucker's excellent JAZLIB, available on
- many BBS systems.
-
- The files contained in DXARC.ARC:
-
- DXARC.EXE Executable program file
- DXARC.DOC This documentation file
- DXARC.C Source code in Microsoft C 4.0
- DXARC "Make file;" instructions to compile and
- link under Microsoft C 4.0 with Codeview,
- using the MAKE utility that comes with MSC
- 4.0.
- FINAL "Make file" used to produce final DXARC.EXE,
- no Codeview support included at that point.
-
-
- Support
- -------
-
- Although I have no interest (financial or otherwise!) in making a
- career out of modifying DXARC, like most programmers I'll be glad
- to hear praise or problems. I can't guarantee I'll be able to fix
- anything but.... You can probably reach me via one of the
- following bulletin boards or commercial services:
-
- a. Compuserve ID 70075,117
- b. Gene Plantz IBBS in Chicago: (312) 885-9557
- c. Bob Mahoney's Exec-PC in Milwaukee: (414) 964-5160
- d. Bob Blacher's Computer Connection in DC: (202) 547-2008
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-