home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 December
/
simtel1292_SIMTEL_1292_Walnut_Creek.iso
/
msdos
/
pcresorc
/
pcr815.arc
/
VCOPY.BAT
< prev
next >
Wrap
DOS Batch File
|
1988-07-15
|
558b
|
23 lines
echo off
if ""=="%1" goto help
if ""=="%2" goto help
if not exist %1 goto nosource
copy %1 %2
md \vcopy.$$$
if not "%2"=="" goto compare
echo\> \vcopy.$$$\input.$$$
:compare
echo n>> \vcopy.$$$\input.$$$
comp %1 %2 < \vcopy.$$$\input.$$$
del \vcopy.$$$\input.$$$
rd \vcopy.$$$
goto end
:help
echo VCOPY copies files and verifies the source file with the copy.
echo To use VCOPY you must supply a source and destination like you
echo would with the DOS copy command.
goto end
:nosource
echo Source file not found. No files copied.
:end