home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
d
/
dlcpmv23.zoo
/
cpmv.doc
< prev
next >
Wrap
Text File
|
1992-04-04
|
2KB
|
48 lines
DL_CPMV v2.3 92/03/30 by Dennis Lo (Dennis_Lo@mindlink.bc.ca)
DESCRIPTION:
'cp' is a BSD Unix-style file copying utility for MS-DOS.
'mv' is a BSD Unix-style file moving utility for MS-DOS.
How are these utilities different from the many other 'cp' and 'mv'
utilities for MS-DOS?
- both have the -p (preserve timestamp) and -v (verbose) options
found in BSD Unix/SunOS.
- both support environment variable references in file names.
- both allow forward slashes to be used in path names.
- mv can move files across drives.
- mv can rename directories as well as files.
USAGE:
cp [-fipnvq] file dest_file
cp [-fipnvq] file1 [file2...fileN] dest_directory
mv [-fipnvq] file dest_file
mv [-fipnvq] file1 [file2...fileN] dest_directory
-f = Force overwrites without prompting (default).
-i = Interactively prompt before overwriting (opposite of -f).
-p = Preserve original timestamp when copying.
-n = use New timestamp when copying (opposite of -p). (default)
-v = Verbose - show each file copied.
-q = Quiet - opposite of -v (default).
-r = Recursively descend & copy/move sub-directories.
Default arguments can be put in the CP environment variable.
eg. 'set CP=ipv'
File names can contain environment variable references
eg. 'set work=/usr/dennis/work'
'cp $work/*.c /junk'
'mv -R $work a:'
TO COMPILE:
The same source file contains both MV and CP. To compile, copy
cpmv.c to either cp.c or mv.c and #define either CP or MV in the
new file. Compile with Turbo C using the small memory model:
eg. tcc cp.c or
tcc mv.c
DISTRIBUTION:
This program and its source code are in the public domain.
Munge at will, but please use a name other than 'dlcpmv' when
releasing munged versions.