Want to run BAT file to install IP printer on laptop:
CLS @ECHO off SET varIP=192.168.0.200 SET varDriver=HP Color LaserJet CP2020 Series PCL 6 SET varDriverFolder=\\Server\\Software\\Hardware\\Drivers\\Printers\\HP CP2025DN\\ SET varDriverFile=\\Server\\Software\\Hardware\\Drivers\\Printers\\HP CP2025DN\\hppcp610.inf SET varName=Reception SET varLocation=Reception REM "Deleting TCP/IP port" REM CSCRIPT /nologo %windir%\system32\prnport.vbs -d -r IP_%varIP% REM "Creating TCP/IP port" CSCRIPT /nologo %windir%\system32\prnport.vbs -a -r IP_%varIP% -o raw -n 9100 -h %varIP% CLS REM "Installation message" @ECHO. @ECHO The %varLocation% printer is currently being installed. @ECHO. @ECHO Please do not close this window. @ECHO. @ECHO Once the installation is complete this Setup window will exit. @ECHO. REM "Driver installation" CSCRIPT /nologo %windir%\system32\prndrvr.vbs -a -m "%varDriver%" -h "%varDriverFolder%" -i "%varDriverFile%" CLS REM "Printer deletion" @ECHO. @ECHO Completing installation. CSCRIPT /nologo %windir%\system32\prnmngr.vbs -d -p "%varName%" CLS REM "Printer installation" @ECHO. @ECHO Completing installation. CSCRIPT /nologo %windir%\system32\prnmngr.vbs -a -p "%varName%" -m "%varDriver%" -r "IP_%varIP%" CLS REM "Location configuration" @ECHO. @ECHO Completing installation. CSCRIPT /nologo %windir%\system32\prncnfg.vbs -t -p "%varName%" -l "%varLocation%" CLS
https://community.spiceworks.com/
No comments:
Post a Comment