jonboy345

ir-ADV 6075

Oct 30th, 2014
405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. CLS
  2. @ECHO on
  3.  
  4. SET varIP=10.73.3.16
  5. SET varDriver=Canon iR-ADV 6075 PCL6
  6. SET varDriverFolder=%~dp0\\Scripts\\CPCP Printer\\IRadv 6075\\PCL5e-c_6_v21.30_Setup_x64\\Driver\\pcl6\\
  7. SET varDriverFile=%~dp0\\Scripts\\CPCP Printer\\IRadv 6075\\PCL5e-c_6_v21.30_Setup_x64\\Driver\\pcl6\\CNP60UA64.inf
  8. SET varName=Canon iR-ADV 6075
  9. SET varLocation=Copy Room
  10.  
  11. REM "Deleting TCP/IP port"
  12. REM CSCRIPT /nologo %windir%\system32\Printing_Admin_Scripts\en-US\prnport.vbs -d -r %varIP%
  13.  
  14. REM "Creating TCP/IP port"
  15. CSCRIPT /nologo %windir%\system32\Printing_Admin_Scripts\en-US\prnport.vbs -a -r %varIP% -o raw -n 9100 -h %varIP%
  16.  
  17. CLS
  18. REM "Installation message"
  19. @ECHO.
  20. @ECHO The %varLocation% printer is currently being installed.
  21. @ECHO.
  22. @ECHO Please do not close this window.
  23. @ECHO.
  24. @ECHO Once the installation is complete this Setup window will exit.
  25. @ECHO.
  26.  
  27. REM "Driver installation"
  28. CSCRIPT /nologo %windir%\system32\Printing_Admin_Scripts\en-US\prndrvr.vbs -a -m "%varDriver%" -h "%varDriverFolder%" -i "%varDriverFile%"
  29.  
  30. CLS
  31.  
  32. REM "Printer deletion"
  33. @ECHO.
  34. @ECHO Completing installation.
  35. CSCRIPT /nologo %windir%\system32\Printing_Admin_Scripts\en-US\prnmngr.vbs -d -p "%varName%"
  36.  
  37. CLS
  38.  
  39. REM "Printer installation"
  40. @ECHO.
  41. @ECHO Completing installation.
  42. CSCRIPT /nologo %windir%\system32\Printing_Admin_Scripts\en-US\prnmngr.vbs -a -p "%varName%" -m "%varDriver%" -r "%varIP%"
  43.  
  44. CLS
  45.  
  46. REM "Location configuration"
  47. @ECHO.
  48. @ECHO Completing installation.
  49. CSCRIPT /nologo %windir%\system32\Printing_Admin_Scripts\en-US\prncnfg.vbs -t -p "%varName%" -l "%varLocation%"
  50.  
  51. CLS
  52.  
  53. REM "Making it Default printer"
  54. REM CSCRIPT %windir%\system32\prnmngr.vbs -p "%varName%" -t
Advertisement
Add Comment
Please, Sign In to add comment