home *** CD-ROM | disk | FTP | other *** search
- LCU ("List Copy Utility") is a utility written to aid in backing up your
- hard disk, by allowing a set of files to be manipulated as a group.
- Functions include
-
- 1. LIST: Reads the current disk directory to prepare a list of files.
- LIST reads a specified group of files, with wildcards, and makes ASCII
- file with file size. The user is prompted for a name of the LIST file,
- and this file is given an extension of "FFF" if none is specified. The
- LIST function includes only the current directory. No edit capability
- is provided by LCU, but the LIST file can be edited by a word processor
- if desired, as to delete or add entries, or to specify files on other
- paths.
-
- The List can include files from multiple directories, using standard
- dos conventions. A filename beginning with a backslash is assumed to
- include a completely specified file path, while one without a backslash
- is assumed to be a path descended from the current path:
-
- \TEMPFILE.$$$ -> File in the root directory
- TEMPFILE.$$$ -> File in the current directory
- A\TEMPFILE.$$$ -> File in directory A of current directory
-
- 2. COPY: Copies a LIST of files from on directory to another. The user
- is prompted for a name of a list, and a destination. The Archive
- attributes of the destination files is set to off, so that these files
- need not be backed up with hard disk back up utilities that check the
- archive attribute, speeding backup. Files are then copied, and reread-
- after-write verified. The copy function is relatively sophisticated,
- including variable block size copy and identification of source and
- destination media types. The copy routine also prompts the user to
- insert subsequent floppies when the destination does not have room for
- the source file, or when the source file is not found on the source
- floppy, so that you can copy a list of files that requires multiple
- floppies to and from a hard disk.
-
- 3. VERIFY: Compares a list of files in one directory to the same files
- in another directory.
-
- 4. MERGE: This function is useful for identifying multiple copies of
- files, and processing depending on whether the source file exists on
- the destination directory, and if so, whether the files are identical.
- After user prompting for a file list, LCU checks the destination
- directory for each file in the source list. If the file is not found
- in the destination, it is copied to the destination directory, and the
- name is written to a log file with extension "FFY" (FFiles - Yes). If
- the file is found on the destination directory, it is compared with the
- file on the source directory. If the files are identical, the name is
- written to the log file with extension "FFY"; if not, the name is
- written to the file with extension "FFN". After checking each file,
- the user is asked whether to delete the "FFY" files on the SOURCE
- directory. The FFY and FFN file lists remain on the source drive,
- making it easy to reverse the process.
-
- The net result of the MERGE function is the consolidation of multiple
- disk worth of files to a destination files, with identification of
- those files on the source disks which are the same or different as
- those on the consolidated directory. I find this handy for identifying
- different versions of files.
-
- 5. ATTRIBUTE: Changes attributes of a list of files.
-
- 6. DELETE: Deletes a list of files.
-
-
- I hope you find this to be a useful utility. Full source code is
- provided, some of which is more generally useful.
-
- Any Comments? Send them on!
-
- John W. Sparks
- September 2, 1982