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

  1. @ECHO OFF
  2. REM PQCVT2.BAT -- Convert old image file to Drive Image image file
  3. REM Arguments:
  4. REM  1-File name of image file
  5. REM Hard wired paths:  Substitute your path specifications
  6. REM ggg1-Ghost EXE path,       ggg2-Old image file path,
  7. REM ddd1-Drive Image EXE path, ddd2-New image file path,
  8. REM 9999-Scratch Drive Number (1-first, 2-second, etc.)
  9. REM
  10. REM Remove the following GOTO line after editing the hard wired paths.
  11. goto done
  12. ECHO Processing image file %1.
  13. if %1a==a goto error3
  14. ggg1\GHOST.EXE -clone,mode=load,src=ggg2\%1,dst=9999 -sure -fx -quiet
  15. if errorlevel 1 goto error1
  16. ddd1\PQDI.EXE /cmd=store_all /img=ddd2\%1 /dsk=9999
  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 image filename. --%1--
  27. :done
  28.