home *** CD-ROM | disk | FTP | other *** search
/ 3-D SPEX / SLIP5000.BIN / setlcdlp.bat < prev    next >
DOS Batch File  |  1996-07-31  |  622b  |  30 lines

  1. @echo off
  2. testlpt.exe
  3. if errorlevel==3 goto three
  4. if errorlevel==2 goto two
  5. if errorlevel==1 goto one
  6. goto end
  7. :three
  8. if "%LCDPORT%"=="LPT3" goto end
  9. set LCDPORT=LPT3
  10. ync "modify c:\autoexec.bat"
  11. if errorlevel==2 goto end
  12. echo set LCDPORT=LPT3>> c:\autoexec.bat
  13. goto end
  14. :two
  15. if "%LCDPORT%"=="LPT2" goto end
  16. set LCDPORT=LPT2
  17. ync "modify c:\autoexec.bat"
  18. if errorlevel==2 goto end
  19. echo set LCDPORT=LPT2>> c:\autoexec.bat
  20. goto end
  21. :one
  22. if "%LCDPORT%"=="LPT1" goto end
  23. set LCDPORT=LPT1
  24. ync "modify c:\autoexec.bat"
  25. if errorlevel==2 goto end
  26. echo set LCDPORT=LPT1>> c:\autoexec.bat
  27. goto end
  28. :end
  29.  
  30.