home *** CD-ROM | disk | FTP | other *** search
- @echo off
- testlpt.exe
- if errorlevel==3 goto three
- if errorlevel==2 goto two
- if errorlevel==1 goto one
- goto end
- :three
- if "%LCDPORT%"=="LPT3" goto end
- set LCDPORT=LPT3
- ync "modify c:\autoexec.bat"
- if errorlevel==2 goto end
- echo set LCDPORT=LPT3>> c:\autoexec.bat
- goto end
- :two
- if "%LCDPORT%"=="LPT2" goto end
- set LCDPORT=LPT2
- ync "modify c:\autoexec.bat"
- if errorlevel==2 goto end
- echo set LCDPORT=LPT2>> c:\autoexec.bat
- goto end
- :one
- if "%LCDPORT%"=="LPT1" goto end
- set LCDPORT=LPT1
- ync "modify c:\autoexec.bat"
- if errorlevel==2 goto end
- echo set LCDPORT=LPT1>> c:\autoexec.bat
- goto end
- :end
-
-