home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / FLOPPIES / CEZ220.ZIP / EZFORMAT.BAT < prev    next >
Encoding:
DOS Batch File  |  1990-11-26  |  679 b   |  22 lines

  1. echo off
  2. cls
  3. rem EZFORMAT.BAT -- A demonstration of CopyEZ(tm) batch file programming.
  4. rem
  5. rem This batch file runs CopyEZ with the EZFORMAT.IMG image file.
  6. rem Defaults to drive A, but will use another drive if specified.
  7. rem EZFORMAT.IMG must be in the current directory.
  8. if not exist EZFORMAT.IMG goto Error
  9. rem Test to see if user supplied a drive letter.
  10. if %1test == test goto NoDrive
  11. rem Use specified drive.
  12. CopyEZ EZFORMAT.IMG %1
  13. goto End
  14. :NoDrive
  15. rem No drive supplied, so use drive A.
  16. CopyEZ EZFORMAT.IMG A:
  17. goto End
  18. :Error
  19. echo Error: EZFORMAT.IMG not in current directory.
  20. echo Please change to the proper directory and run EZFORMAT again.
  21. :End
  22.