home *** CD-ROM | disk | FTP | other *** search
- 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