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

  1. @echo off
  2. rem  ** Install Word for DOS drivers for SpeedStar 24x
  3. rem  ** %1 is GIS.EXE path  %2 is destination
  4.  
  5. rem  ** Check for 20k of free disk space
  6. %1\ds.exe %2 20
  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  ** Rename existing SCREEN.VID to SCREEN.OLD
  17. echo Renaming SCREEN.VID to SCREEN.OLD
  18. ren %2\screen.vid screen.old
  19.  
  20. rem  ** GIS checks for directory, so let's self-extract to destination
  21. %1\drivers\word.exe %2
  22.  
  23. rem  ** Copy SSSCREEN.VID to SCREEN.VID
  24. copy %2\SSSCREEN.VID %2\SCREEN.VID
  25. goto Quit
  26.  
  27. :FreeSpace
  28. rem  ** DS returned insufficient disk space
  29. echo An error has occured checking for disk space.  Please make sure you
  30. echo have at least 20k of free disk space on the destination drive.
  31. echo.
  32. echo Drivers installation ABORTED.
  33. pause
  34.  
  35. :Quit
  36.