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