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

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