home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / pcresour / 1981_05 / vcopy.bat < prev    next >
DOS Batch File  |  1988-07-15  |  558b  |  23 lines

  1. echo off
  2. if ""=="%1" goto help
  3. if ""=="%2" goto help
  4. if not exist %1 goto nosource
  5. copy %1 %2
  6. md \vcopy.$$$
  7. if not "%2"=="" goto compare
  8. echo\> \vcopy.$$$\input.$$$
  9. :compare
  10. echo n>> \vcopy.$$$\input.$$$
  11. comp %1 %2 < \vcopy.$$$\input.$$$
  12. del \vcopy.$$$\input.$$$
  13. rd \vcopy.$$$
  14. goto end
  15. :help
  16. echo VCOPY copies files and verifies the source file with the copy.
  17. echo To use VCOPY you must supply a source and destination like you
  18. echo would with the DOS copy command.
  19. goto end
  20. :nosource
  21. echo Source file not found. No files copied.
  22. :end
  23.