home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
utility
/
jw.zip
/
SCOPY.DOC
< prev
next >
Wrap
Text File
|
1992-04-02
|
4KB
|
68 lines
SCOPY (SAFE COPY) copies files with protection against overwriting a duplicate
at the destination. It uses wild cards (* and ?) in the same manner as the DOS
COPY command and generally functions the same as COPY, except that it can not
be used to concatenate files with the "+" sign.
FORMAT: scopy [path]source [path]destination
For example, SCOPY \TXT\*.DOC \PVT will copy all .DOC files from the \TXT
directory to the \PVT directory. Files can be renamed while being copied by
specifying the new name in the destination. For instance, SCOPY \TXT\*.DOC
\PVT\*.XXX will copy all of the .DOC files from the \TXT subdirectory to the
\PVT subdirectory, while changing all of their extensions from .DOC to .XXX.
As with the DOS COPY command, if SCOPY can not find a directory with the
destination name you specify, and the remainder of your destination path is
valid, SOPY will assume that a new filename is being requested. To refer to
the example above, if you specify SCOPY \TXT\*.DOC \PVT and you do not have a
\PVT directory, SCOPY will assume that you want to to try to copy all of the
\TXT\*.DOC files into the root directory and rename them all PVT. After it has
copied the first one, it will find a duplicate name at the destination and
will give you the opportunity to quit.
If you omit the destination entirely, SCOPY assumes that the destination
is the current directory. For instance, SCOPY C:\UTIL\*.DOC will be
regarded the same as SCOPY C:\UTIL\*.DOC *.*.
If SCOPY encounters a file name at the destination that is a duplicate
of a file name it is trying to copy from the source, it offers the
following options:
Overwrite the destination file with the source file (even if the destination
has read only status);
Skip the copy, leaving source and destination files as they were;
Rename the new copy, leaving the destination file as it was;
Quit the program, doing no further copies.
The term "Overwrite" is a misnomer. The existing destination file is
actually renamed with the temporary name $SCOPY$$.$$$. It is deleted only
when the source file has been successfully copied. The deletion is done
automatically; or, if the copy process failed, the destination file is
restored to its original name. You should not find $SCOPY$$.$$$ on your
disk unless program execution was interrupted.
Because SCOPY does not delete a duplicate destination file until after the
source file has been successfully copied, you may encounter situations with
nearly full floppy disks in which the disk is reported as already full. DOS
COPY would simply write over the duplicate at the destination; SCOPY needs
enough space initially at the destination for both the source and destination
files.
You can not rename a file to the same name as the directory into which you
are trying to copy it. If you have a \TXT directory, you can not put a file
in it that is also called TXT (since the directory name is actually a kind
of file name). SCOPY will report a duplicate name if it encounters this
situation.
==================================================================
SCOPY is freeware from Jim Wygant, copyright 1992. It can be used and
distributed at no charge, provided no changes are made in the program or
this documentation. There are no warranties regarding suitability to any
task. Use at your own risk.
If you discover bugs or problems with SCOPY, please contact:
Jim Wygant (CompuServe# 73627,2043)
1130 SW Morrison, #220
Portland, OR 97205
(503) 228-3632