home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2001 January / VPR0101A.BIN / APP_DEMO / DI4DEMO / RESCUEME / OS2DOS / PQCVT.BAT < prev    next >
DOS Batch File  |  2000-09-08  |  768b  |  28 lines

  1. @ECHO OFF
  2. REM PQCVT.BAT -- Convert old image files to Drive Image image files
  3. REM Arguments:
  4. REM  1-Ghost EXE path,       2-Old image file path,
  5. REM  3-Drive Image EXE path, 4-New image file path,
  6. REM  5-Scratch Drive Number (1-First, 2-Second, etc)
  7. REM
  8. if %1a==a goto error3
  9. if %2a==a goto error3
  10. if %3a==a goto error3
  11. if %4a==a goto error3
  12. if %5a==a goto error3
  13. ECHO Processing image file %1.
  14. %1\GHOST.EXE -clone,mode=load,src=%2,dst=%5 -sure -fx -quiet
  15. if errorlevel 1 goto error1
  16. %3\PQDI.EXE /cmd=store_all /img=%4 /dsk=%5
  17. if errorlevel 1 goto error2
  18. goto done
  19. :error1
  20. ECHO Error during image RESTORATION.
  21. goto done
  22. :error2
  23. ECHO Error during image CREATION.
  24. goto done
  25. :error3
  26. ECHO Error missing argument(s). --%1, %2, %3, %4, %5--
  27. :done
  28.