home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / m / m067 / 1.img / BATCH / CADVANCE.BAT < prev    next >
Encoding:
DOS Batch File  |  1992-06-29  |  921 b   |  37 lines

  1. @echo off
  2. rem  ** Install Cadvance drivers for SpeedStar 24x
  3. rem  ** %1 is GIS.EXE path  %2 is destination
  4.  
  5. rem  ** Check for 34k of free disk space
  6. %1\ds.exe %2 34
  7. if errorlevel==2 goto FreeSpace
  8.  
  9. rem  ** Rename existing GS.DRV to GS.OLD
  10. echo Renaming GS.DRV to GS.OLD
  11. ren %2\gs.drv gs.old
  12.  
  13. rem  ** Check for directory existance
  14. cls
  15. %1\md2 %2 > nul
  16. if errorlevel==1 goto InstallError
  17. if errorlevel==0 goto CopyFiles
  18.  
  19. :CopyFiles
  20. rem  ** Directory exists, so let's self-extract to destination
  21. rem  ** Extract drivers to specified directory
  22. %1\drivers\cadvance.exe %2
  23.  
  24. rem  ** GIS will copy driver file to GS.DRV upon return
  25.  
  26. goto Quit
  27.  
  28. :FreeSpace
  29. rem  ** DS returned insufficient disk space
  30. echo An error has occured checking for disk space.  Please make sure you
  31. echo have at least 34k of free disk space on the destination drive.
  32. echo.
  33. echo Drivers installation ABORTED.
  34. pause
  35.  
  36. :Quit
  37.