home *** CD-ROM | disk | FTP | other *** search
- TITLE: ListCopy (LCOPY.EXE) ver 1.05
-
- PURPOSE: Extended file copy program
-
- DATE: 12-5-89
-
- AUTHOR: Thomas A. Lundin
- 9129 Colfax Avenue South
- Bloomington, MN 55420
- day phone: (612) 588-7571
-
- DESCRIPTION: LCOPY is a file copying program that extends the
- capabilities of the DOS COPY command. Features in LCOPY are:
- . ability to copy two or more different wild card
- specifications at one time
- . ability to copy multiple files through a DIRLIST
- (redirected DIR file)
- . option to clear out target subdirectory before copying
- . option to move files (removing source file after copy),
- even across drives
- . automatic overwrite protection, which can be optionally
- bypassed
- . automatic out-of-space warning which allows switching
- floppies before continuing; also provides for optional
- disk format before continuing
- . option to prompt for OK before each file is copied
- . option to copy only files that don't exist on target
- subdirectory, or that exist as older files
- . option to use DOS read-after-write VERIFY function during
- copying
- . option to exclude selected files from being copied
- . runs under DOS and OS/2 real and protected modes
-
- OPERATION: The command line invocation is:
-
- C>lcopy [@]filespec[,[@]filespec,...] [to_path] [/options]
-
- As each file is copied, its name, destination, and size are
- listed on the screen.
-
- 1. The source "filespec" can consist of a drive,
- subdirectory, and file name. Wild cards are allowed.
- The file name is the only required portion of the
- filespec. If the drive and subdirectory portions are
- missing, the current drive and subdirectory will be
- used. Multiple filespecs can be entered at one time,
- separated by commas. These filespecs can access
- different drives, subdirectories, and file names.
-
- 2. An "at-sign" (@) in front of the source filespec
- indicates the use of a "dirlist", which is a file that
- has been created from a redirected DIR command. For
- example, the DOS command
-
- dir *.txt >dirfile ─┘
-
- will create a disk file named "dirfile" which contains a
- directory of all files with a ".TXT" extension. A
- dirlist can be edited with a text editor to end up with
- a list of specific, unrelated files to copy in one
- pass.
-
- 3. If the "to_path" is missing, files are copied to the
- current drive and subdirectory.
-
- 4. OPTIONS:
-
- /d Deletes all files in the "to_path" before copying
- /m Moves, rather than copies, files by deleting the
- original files after the copy has taken place
- /o forces all existing target files to be Overwritten
- /p Prompts for confirmation before each file is copied
- /u Updates files by copying only files that would be
- new or more recent on the target subdirectory
- /v use the DOS VERIFY feature
- /xfilespec[,filespec...] will eXclude the specified
- files from being copied
-
- Options can be entered separately, each with a forward
- slash (/d /m /v) or they can be listed in a group, with
- a single forward slash (/dmv). (The /x option must be
- the last one entered if all options are typed after one
- slash.)
-
- 5. If you're copying from a hard disk to floppy, and the
- floppy runs out of space, the following message will
- appear:
-
- Insert new disk in drive A:
- Press any key to continue;
- Press F to format new disk;
- Press ESC to quit.
-
- The any-key and ESC options should be obvious to you.
- If you specified the /d option in your command line,
- the new disk will be erased before copying continues.
-
- Pressing F allows you to format a new disk before
- copying continues. The format program is called in one
- of two ways:
-
- 1) if you have LFRMT.BAT on your system, it will be
- run. This batch file can contain any set of commands
- that will format a disk (e.g. FORMAT %1);
- 2) if you do not have LFRMT.BAT on your system, the
- program will prompt you to enter a command to format
- a disk (e.g. FORMAT A:).
-
- I have chosen not to automatically invoke the DOS
- FORMAT program because there are other third-party
- format programs which many people (including me) choose
- over DOS. The batch file or prompt seems the best
- approach to accommodate flexibility.
-
- CTRL-C will cancel the program.
-
- EXAMPLES:
- C>lcopy *.asc,*.txt,*.dat a: /md
-
- the above command will copy three sets of files, ending in
- different extensions, to drive A:. The original files will
- be deleted. Drive A: will be cleared before copying.
-
- C>lcopy @dirlist,d:\lotus\*.wks e:\lotus /o
-
- the above command will copy all files from the list
- "dirlist", and all *.wks files from drive D: in subdirectory
- \LOTUS over to drive E: subdirectory \LOTUS. Any existing
- files will be overwritten.
-
- C>lcopy a:*.* /p
-
- the above command will copy all files from drive A: root
- directory to the current drive and subdirectory. A prompt
- must be answered before each file is copied.
-
- C>lcopy *.* a: /x*.exe,*.com,*.bat /v
-
- the above command will copy all files in the current
- subdirectory to drive A: except for files ending in *.EXE,
- *.COM, or *.BAT, and will use DOS verify during copying.
-
- C>lcopy d:*.txt /xd:readme.txt,d:order.txt
-
- the above command will copy all files on drive D: ending in
- *.TXT to the current subdirectory, except for the files
- D:README.TXT and D:ORDER.TXT
-
- NOTES: The program is written in Lattice C 6.0. Under OS/2, you
- must use DOS-compatible filenames.
-
- MACHINE: The program will run on any MS-DOS compatible computer using
- MS-DOS 2.x or higher, with a minimum of 256K RAM, or on any
- OS/2-compatible computer using Stardard Edition 1.0 or
- higher, with a minimum of 256K ram.
-
- DISCLAIMER: This program is distributed as user-supported software. Use
- it, copy it, give it to your friends. No warranties, either
- expressed or implied, are given by the author or distributor of
- the program, and the user accepts all risk of damage arising
- out of the application and use of the program.
-
- BEG: If you find this program to be of value, contributions in any
- amount ($10 suggested) will be gratefully accepted. Please make
- checks payable to Thomas Lundin.
-
- Send comments/bug reports/contributions to:
-
- ╔══════════════════════════╗
- ║ Thomas A. Lundin ║
- ║ 9129 Colfax Avenue South ║
- ║ Bloomington, MN 55420 ║
- ║ day phone (612) 588-7571 ║
- ╚══════════════════════════╝
-
- You can also reach me at my BBS home base:
-
- PC-ROCKLAND BBS
- If you can't find a program here,
- it probably doesn't exist!
- (914) 353-2538
- (Leave msg. for "Tom Lundin")
-
- Thank you for using LCOPY.
-
-