Why are my arguments Invalid?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Message
Author
wchristner
Posts: 24
Joined: 06 May 2014 09:55
Location: North West Indiana

Why are my arguments Invalid?

#1 Post by wchristner » 13 Apr 2016 11:59

I am working on Version 2 of my Printer install script and everything works...on my Laptop. When I take this to another Laptop I get Arguments are Invalid Error.
Anybody else get this? if it is working on my laptop than why not another under the same domain and on the same network?
Here's what I got - If anybody else has had the same error and knows how to fix I would be greatly appreciative.


Code: Select all

@Title Kinexus Printer Install
@echo off
@echo Making sure all printers are online before adding...
@echo.
@echo ================
@Echo Benton Harbor
@echo ================
set IPADDRESS=192.168.141.20
ping -n 2 %ipaddress% | find "TTL=" > nul
if errorlevel 1 echo %ipaddress% %date% %time% >>"%userprofile%\desktop\failurelog.txt
set IPADDRESS=192.168.141.104
ping -n 2 %ipaddress% | find "TTL=" > nul
if errorlevel 1 echo %ipaddress% %date% %time% >>"%userprofile%\desktop\failurelog.txt
set IPADDRESS=192.168.141.250
ping -n 2 %ipaddress% | find "TTL=" > nul
if errorlevel 1 echo %ipaddress% %date% %time% >>"%userprofile%\desktop\failurelog.txt
set IPADDRESS=192.168.141.251
ping -n 2 %ipaddress% | find "TTL=" > nul
if errorlevel 1 echo %ipaddress% %date% %time% >>"%userprofile%\desktop\failurelog.txt
set IPADDRESS=192.168.141.53
ping -n 2 %ipaddress% | find "TTL=" > nul
if errorlevel 1 echo %ipaddress% %date% %time% >>"%userprofile%\desktop\failurelog.txt
@echo.
@echo ================
@echo Bridge Academy
@echo ================
set IPADDRESS=192.168.190.9
ping -n 2 %ipaddress% | find "TTL=" > nul
if errorlevel 1 echo %ipaddress% %date% %time% >>"%userprofile%\desktop\failurelog.txt
@echo.
@echo ================
@echo Dowagic
@echo ================
set IPADDRESS=192.168.142.25
ping -n 2 %ipaddress% | find "TTL=" > nul
if errorlevel 1 echo %ipaddress% %date% %time% >> "%userprofile%\desktop\failurelog.txt
set IPADDRESS=192.168.142.23
ping -n 2 %ipaddress% | find "TTL=" > nul
if errorlevel 1 echo %ipaddress% %date% %time% >> "%userprofile%\desktop\failurelog.txt
@echo.
@echo ================
@echo PawPaw
@echo ================
set IPADDRESS=192.168.144.80
ping -n 2 %ipaddress% | find "TTL=" > nul
if errorlevel 1 echo %ipaddress% %date% %time% >> "%userprofile%\desktop\failurelog.txt
set IPADDRESS=192.168.144.57
ping -n 2 %ipaddress% | find "TTL=" > nul
if errorlevel 1 echo %ipaddress% %date% %time% >> "%userprofile%\desktop\failurelog.txt



cls
@echo off
@echo off
@echo off
@echo.
echo==================
echo Which Location?
@echo.
echo Please choose 1-4
echo==================
@echo.
@echo off
echo 1)Benton Harbor
echo 2)Bridge Academy
echo 3)Dowagiac
echo 4)PawPaw

:choice
set /p op=Choose your Location:
if "%op%"=="1" goto :benton
if "%op%"=="2" goto :bridge
if "%op%"=="3" goto :dowagiac
if "%op%"=="4" goto :pawpaw

echo Please Choose 1-4
goto choice


@echo.
@echo.
:benton
cls
@echo off
@echo off
@echo off
@echo.
echo=============================
echo Which Benton Harbor Printer?
echo=============================
@echo.
@echo off
echo 1)DockSide Color
echo 2)DoclSide Black and White
echo 3)Shoreline Color
echo 4)Shoreline B/W
echo 5)Spinnaker
ECHO 6)All

:option
set /p op=Type Choose your Printer:
if "%op%"=="1" goto :dockside color
if "%op%"=="2" goto :dockside black and white
if "%op%"=="3" goto :shoreline color
if "%op%"=="4" goto :shoreline b/w
if "%op%"=="5" goto :spinnaker
if "%op%"=="6" goto :all

echo Please Choose 1-6
goto option

:dockside color
cls
@echo  #######################################################################
@echo #                                                                       #
@echo #                         *Kinexus*                                     #
@echo #                                                                       #
@echo # This will Install Ricoh color Dockside printer on your computer.      #
@echo # Once you click OK, it will run. It may take a minute to install.      #
@echo # During that time you will see no screen activity until it finishes.   #
@echo # Installing Printer.... please wait                                    #
@echo.#                                                                       #
@echo  #######################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.141.20 -h 192.168.141.20 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Ricoh Aficio MP C6000 PS" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Ricoh MP6501\Win 10\oemsetup.inf"
rundll32 printui.dll,PrintUIEntry /if /b "BH Dockside Color" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Ricoh MP6501\Win 10\oemsetup.inf" /r "IP_192.168.141.20" /m "Ricoh Aficio MP C6000 PS"
@echo.
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                         *Kinexus*                                   =
@ECHO =   Installation of the Ricoh printer has completed!                  =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================
pause
exit

:dockside black and white
cls
@echo  #######################################################################
@echo #                                                                       #
@echo #                         *Kinexus*                                     #
@echo #                                                                       #
@echo # This will Install Ricoh B/W Dockside printer on your computer.        #
@echo # Once you click OK, it will run. It may take a minute to install.      #
@echo # During that time you will see no screen activity until it finishes.   #
@echo # Installing Printer.... please wait                                    #
@echo.#                                                                       #
@echo  #######################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.141.250 -h 192.168.141.250 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "RICOH Aficio MP 6500 PCL" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP C6502 PCL\disk\OEMSETUP.INF"
rundll32 printui.dll,PrintUIEntry /if /b "BH Dockside Black and White" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP C6502 PCL\disk\OEMSETUP.INF" /r "IP_192.168.141.250" /m "RICOH Aficio MP 6500 PCL"
@echo.
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                         *Kinexus*                                   =
@ECHO =   Installation of the Ricoh printer has completed!                  =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================
pause
exit


:shoreline color
@echo  #######################################################################
@echo #                                                                       #
@echo #                         *Kinexus*                                     #
@echo #                                                                       #
@echo # This will Install Ricoh color Shoreline printer on your computer.     #
@echo # Once you click OK, it will run. It may take a minute to install.      #
@echo # During that time you will see no screen activity until it finishes.   #
@echo # Installing Printer.... please wait                                    #
@echo.#                                                                       #
@echo  #######################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.141.104 -h 192.168.141.104 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Ricoh Aficio MP 6000 PS" /F "\\bh-miworks-srv2\PrintDrivers\Ricoh MP c6502 Shoreline color\Win 10\disk1\oemsetup.inf"
rundll32 printui.dll,PrintUIEntry /if /b "BH Shoreline Color" /F "\\bh-miworks-srv2\PrintDrivers\Ricoh MP c6502 Shoreline color\Win 10\disk1\oemsetup.inf" /r "IP_192.168.141.104" /m "Ricoh Aficio MP 6000 PS"
@echo.
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                         *Kinexus*                                   =
@ECHO =   Installation of the Ricoh printer has completed!                  =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================
pause
exit

:shoreline black and white
@echo  #######################################################################
@echo #                                                                       #
@echo #                         *Kinexus*                                     #
@echo #                                                                       #
@echo # This will Install Ricoh B/W Shoreline printer on your computer.       #
@echo # Once you click OK, it will run. It may take a minute to install.      #
@echo # During that time you will see no screen activity until it finishes.   #
@echo # Installing Printer.... please wait                                    #
@echo.#                                                                       #
@echo  #######################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.141.251 -h 192.168.141.251 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Ricoh Aficio MP 6000 PCL" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf"
rundll32 printui.dll,PrintUIEntry /if /b "BH Shoreline Black and White" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf" /r "IP_192.168.141.251" /m "Ricoh Aficio MP 6000 PCL"
@echo.
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                         *Kinexus*                                   =
@ECHO =   Installation of the Ricoh printer has completed!                  =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================
pause
exit


:spinnaker
@echo  #######################################################################
@echo #                                                                       #
@echo #                         *Kinexus*                                     #
@echo #                                                                       #
@echo # This will Install Ricoh B/W Spannaker printer on your computer.       #
@echo # Once you click OK, it will run. It may take a minute to install.      #
@echo # During that time you will see no screen activity until it finishes.   #
@echo # Installing Printer.... please wait                                    #
@echo.#                                                                       #
@echo  #######################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.141.53 -h 192.168.141.53 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Ricoh Aficio MP 6000 PCL" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf"
rundll32 printui.dll,PrintUIEntry /if /b "BH Spannaker Black and White" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf" /r "IP_192.168.141.53" /m "Ricoh Aficio MP 6000 PCL"
@echo.
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                         *Kinexus*                                   =
@ECHO =   Installation of the Ricoh printer has completed!                  =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================
pause
exit








:all
:dockside color
cls
@echo  #######################################################################
@echo #                                                                       #
@echo #                         *Kinexus*                                     #
@echo #                                                                       #
@echo # This will Install Ricoh color Dockside printer on your computer.      #
@echo # Once you click OK, it will run. It may take a minute to install.      #
@echo # During that time you will see no screen activity until it finishes.   #
@echo # Installing Printer.... please wait                                    #
@echo.#                                                                       #
@echo  #######################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.141.20 -h 192.168.141.20 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Ricoh Aficio MP C6000 PS" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Ricoh MP6501\Win 10\oemsetup.inf"
rundll32 printui.dll,PrintUIEntry /if /b "BH Dockside Color" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Ricoh MP6501\Win 10\oemsetup.inf" /r "IP_192.168.141.20" /m "Ricoh Aficio MP C6000 PS"
@echo.
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                        *Kinexus*                                    =
@ECHO =   Installation of the Ricoh printer has completed!                  =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================


:dockside black and white
cls
@echo  #######################################################################
@echo #                                                                       #
@echo #                         *Kinexus*                                     #
@echo #                                                                       #
@echo # This will Install Ricoh B/W Dockside printer on your computer.        #
@echo # Once you click OK, it will run. It may take a minute to install.      #
@echo # During that time you will see no screen activity until it finishes.   #
@echo # Installing Printer.... please wait                                    #
@echo.#                                                                       #
@echo  #######################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.141.250 -h 192.168.141.250 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "RICOH Aficio MP 6500 PCL" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP C6502 PCL\disk\OEMSETUP.INF"
rundll32 printui.dll,PrintUIEntry /if /b "BH Dockside Black and White" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP C6502 PCL\disk\OEMSETUP.INF" /r "IP_192.168.141.250" /m "RICOH Aficio MP 6500 PCL"
@echo.
@echo.
@echo   ====================================================================
@echo  =                                                                    =
@echo  =                       *Kinexus*                                    =
@ECHO  =  Installation of the Ricoh printer has completed!                  =
@echo  =  If you have any problems, please contact IT.                      =
@echo  =                                                                    =
@echo   ====================================================================



:shoreline color
cls
@echo  #######################################################################
@echo #                                                                       #
@echo #                         *Kinexus*                                     #
@echo #                                                                       #
@echo # This will Install Ricoh color Shoreline printer on your computer.     #
@echo # Once you click OK, it will run. It may take a minute to install.      #
@echo # During that time you will see no screen activity until it finishes.   #
@echo # Installing Printer.... please wait                                    #
@echo.#                                                                       #
@echo  #######################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.141.104 -h 192.168.141.104 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Ricoh Aficio MP 6000 PS" /F "\\bh-miworks-srv2\PrintDrivers\Ricoh MP c6502 Shoreline color\Win 10\disk1\oemsetup.inf"
rundll32 printui.dll,PrintUIEntry /if /b "BH Shoreline Color" /F "\\bh-miworks-srv2\PrintDrivers\Ricoh MP c6502 Shoreline color\Win 10\disk1\oemsetup.inf" /r "IP_192.168.141.104" /m "Ricoh Aficio MP 6000 PS"
@echo.
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                        *Kinexus*                                    =
@ECHO =   Installation of the Ricoh printer has completed!                  =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================


:shoreline black and white
cls
@echo  #######################################################################
@echo #                                                                       #
@echo #                         *Kinexus*                                     #
@echo #                                                                       #
@echo # This will Install Ricoh B/W Shoreline printer on your computer.       #
@echo # Once you click OK, it will run. It may take a minute to install.      #
@echo # During that time you will see no screen activity until it finishes.   #
@echo # Installing Printer.... please wait                                    #
@echo.#                                                                       #
@echo  #######################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.141.251 -h 192.168.141.251 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Ricoh Aficio MP 6000 PCL" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf"
rundll32 printui.dll,PrintUIEntry /if /b "BH Shoreline Black and White" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf" /r "IP_192.168.141.251" /m "Ricoh Aficio MP 6000 PCL"
@echo.
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                        *Kinexus*                                    =
@ECHO =   Installation of the Ricoh printer has completed!                  =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================


:spinnaker
cls
@echo  #######################################################################
@echo #                                                                       #
@echo #                         *Kinexus*                                     #
@echo #                                                                       #
@echo # This will Install Ricoh B/W Spannaker printer on your computer.       #
@echo # Once you click OK, it will run. It may take a minute to install.      #
@echo # During that time you will see no screen activity until it finishes.   #
@echo # Installing Printer.... please wait                                    #
@echo.#                                                                       #
@echo  #######################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.141.53 -h 192.168.141.53 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Ricoh Aficio MP 6000 PCL" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf"
rundll32 printui.dll,PrintUIEntry /if /b "BH Spannaker Black and White" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf" /r "IP_192.168.141.53" /m "Ricoh Aficio MP 6000 PCL"
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                        *Kinexus*                                    =
@ECHO =   Installation of the  printers has completed!                      =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================
pause
exit




:bridge
cls
@echo  #######################################################################
@echo #                                                                       #
@echo #                         *Kinexus*                                     #
@echo #                                                                       #
@echo # This will Install Ricoh B/W Bridge Academy printer on your computer.  #
@echo # Once you click OK, it will run. It may take a minute to install.      #
@echo # During that time you will see no screen activity until it finishes.   #
@echo # Installing Printer.... please wait                                    #
@echo.#                                                                       #
@echo  #######################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.190.9 -h 192.168.190.9 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "RICOH Aficio MP 7001 PCL 6" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Rioch MP 7001\r67293en\disk1\oemsetup.inf"
rundll32 printui.dll,PrintUIEntry /if /b "Bridge Academy Black and White" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Rioch MP 7001\r67293en\disk1\oemsetup.inf" /r "IP_192.168.190.9" /m "RICOH Aficio MP 7001 PCL 6"
@echo.
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                        *Kinexus*                                    =
@ECHO =   Installation of the Ricoh printer has completed!                  =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================
pause
exit

:dowagiac
@echo.
echo=============================
echo Which Dowagiac Printer?
echo=============================
@echo.
@echo off
echo 1)Dowagic Color
echo 2)Dowagic Black and White
echo 3)Both

:option2
set /p op=Type Choose your Printer:
if "%op%"=="1" goto :dowagiac b/w
if "%op%"=="2" goto :dowagiac color
if "%op%"=="3" goto :both1


echo Please Choose 1-3
goto option2

:dowagiac b/w
cls
@echo  ########################################################################
@echo #                                                                        #
@echo #                          *Kinexus*                                     #
@echo #                                                                        #
@echo #  This will Install Ricoh B/W Dowagiac printer on your computer.        #
@echo #  Once you click OK, it will run. It may take a minute to install.      #
@echo #  During that time you will see no screen activity until it finishes.   #
@echo #  Installing Printer.... please wait                                    #
@echo.#                                                                        #
@echo  ########################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.142.25 -h 192.168.142.25 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Ricoh Aficio MP 6000 PCL" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf"
rundll32 printui.dll,PrintUIEntry /if /b "Dowagic Black and White" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf" /r "IP_192.168.142.25" /m "Ricoh Aficio MP 6000 PCL"
@echo.
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                        *Kinexus*                                    =
@ECHO =   Installation of the Ricoh printer has completed!                  =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================
pause
exit

:dowagiac color
@echo  #######################################################################
@echo #                                                                       #
@echo #                         *Kinexus*                                     #
@echo #                                                                       #
@echo # This will Install Xerox color printer on your computer.               #
@echo # Once you click OK, it will run. It may take a minute to install.      #
@echo # During that time you will see no screen activity until it finishes.   #
@echo # Installing Printer.... please wait                                    #
@echo.#                                                                       #
@echo  #######################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.142.23 -h 192.168.142.23 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Xerox Phaser 6180N PCL 6" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Xerox6180N\64Bit\xrxkrzi.inf"
rundll32 printui.dll,PrintUIEntry /if /b "Dowagic Color" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Xerox6180N\64Bit\xrxkrzi.inf" /r "IP_192.168.142.23" /m "Xerox Phaser 6180N PCL 6"
@echo.
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                        *Kinexus*                                    =
@ECHO =   Installation of the Xerox color printer has completed!            =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================
pause
exit


:both1
cls
@echo  ########################################################################
@echo #                                                                        #
@echo #                          *Kinexus*                                     #
@echo #                                                                        #
@echo #  This will Install Ricoh B/W Dowagiac printer on your computer.        #
@echo #  Once you click OK, it will run. It may take a minute to install.      #
@echo #  During that time you will see no screen activity until it finishes.   #
@echo #  Installing Printer.... please wait                                    #
@echo.#                                                                        #
@echo  ########################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.142.25 -h 192.168.142.25 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Ricoh Aficio MP 6000 PCL" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf"
rundll32 printui.dll,PrintUIEntry /if /b "Dowagic Black and White" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf" /r "IP_192.168.142.25" /m "Ricoh Aficio MP 6000 PCL"
@echo.
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                        *Kinexus*                                    =
@ECHO =   Installation of the Ricoh printer has completed!                  =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================
@echo.
@echo.
@echo  #######################################################################
@echo #                                                                       #
@echo #                         *Kinexus*                                     #
@echo #                                                                       #
@echo # This will Install Xerox color printer on your computer.               #
@echo # Once you click OK, it will run. It may take a minute to install.      #
@echo # During that time you will see no screen activity until it finishes.   #
@echo # Installing Printer.... please wait                                    #
@echo.#                                                                       #
@echo  #######################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.142.23 -h 192.168.142.23 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Xerox Phaser 6180N PCL 6" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Xerox6180N\64Bit\xrxkrzi.inf"
rundll32 printui.dll,PrintUIEntry /if /b "Dowagic Color" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Xerox6180N\64Bit\xrxkrzi.inf" /r "IP_192.168.142.23" /m "Xerox Phaser 6180N PCL 6"
@echo.
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                        *Kinexus*                                    =
@ECHO =   Installation of the Xerox color printer has completed!            =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================
pause
exit
@echo.
:pawpaw
echo=============================
echo Which Paw Paw Printer?
echo=============================
@echo.
@echo off
echo 1)Paw Paw Color
echo 2)Paw Paw Black and White
ECHO 3)Both

:option2
set /p op=Type Choose your Printer:
if "%op%"=="1" goto :pawpaw color
if "%op%"=="2" goto :pawpaw black and white
if "%op%"=="3" goto :both2


echo Please Choose 1-3
goto option2

:pawpaw black and white
cls
@echo  ########################################################################
@echo #                                                                        #
@echo #                          *Kinexus*                                     #
@echo #                                                                        #
@echo #  This will Install Paw Paw Ricoh MP 6002 printer on your computer.     #
@echo #  Once you click OK, it will run. It may take a minute to install.      #
@echo #  During that time you will see no screen activity until it finishes.   #
@echo #  Installing Printer.... please wait                                    #
@echo.#                                                                        #
@echo # #######################################################################
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.144.80 -h 192.168.144.80 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Ricoh Aficio MP 6000 PCL" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf"
rundll32 printui.dll,PrintUIEntry /if /b "BH Paw Paw Black and White" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf" /r "IP_192.168.144.80" /m "Ricoh Aficio MP 6000 PCL"
@echo  ====================================================================
@echo =                                                                    =
@echo =                        *Kinexus*                                   =
@ECHO =  Installation of the Ricoh printer has completed!                  =
@echo =  If you have any problems, please contact IT.                      =
@echo =                                                                    =
@echo  ====================================================================
cls

:pawpaw color
@echo  ########################################################################                                     
@echo #                                                                        #
@echo #                          *Kinexus*                                     #
@echo #                                                                        #
@echo #  This will Install the Xerox printer on your computer.                 #
@echo #  Once you click OK, it will run. It may take a minute to install.      #
@echo #  During that time you will see no screen activity until it finishes.   #
@echo #  Installing Printer.... please wait                                    #
@echo.#                                                                        #
@echo  ########################################################################
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.144.75 -h 192.168.144.75 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Xerox Phaser 6180N PCL 6" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Xerox6180N\64Bit\xrxkrzi.inf"
rundll32 printui.dll,PrintUIEntry /if /b "Paw Paw Color" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Xerox6180N\64Bit\xrxkrzi.inf" /r "IP_192.168.144.75" /m "Xerox Phaser 6180N PCL 6"
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                        *Kinexus*                                    =
@ECHO =   Installation of the Xerox color printer has completed!            =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================
pause
exit


:both2
cls
@echo  ########################################################################
@echo #                                                                        #
@echo #                          *Kinexus*                                     #
@echo #                                                                        #
@echo #  This will Install Paw Paw Ricoh MP 6002 printer on your computer.     #
@echo #  Once you click OK, it will run. It may take a minute to install.      #
@echo #  During that time you will see no screen activity until it finishes.   #
@echo #  Installing Printer.... please wait                                    #
@echo.#                                                                        #
@echo # #######################################################################
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.144.80 -h 192.168.144.80 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Ricoh Aficio MP 6000 PCL" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf"
rundll32 printui.dll,PrintUIEntry /if /b "BH Paw Paw Black and White" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf" /r "IP_192.168.144.80" /m "Ricoh Aficio MP 6000 PCL"
@echo  ====================================================================
@echo =                                                                    =
@echo =                        *Kinexus*                                   =
@ECHO =  Installation of the Ricoh printer has completed!                  =
@echo =  If you have any problems, please contact IT.                      =
@echo =                                                                    =
@echo  ====================================================================
@echo.
@echo.
cls
@echo  ########################################################################                                     
@echo #                                                                        #
@echo #                          *Kinexus*                                     #
@echo #                                                                        #
@echo #  This will Install the Xerox printer on your computer.                 #
@echo #  Once you click OK, it will run. It may take a minute to install.      #
@echo #  During that time you will see no screen activity until it finishes.   #
@echo #  Installing Printer.... please wait                                    #
@echo.#                                                                        #
@echo  ########################################################################
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.144.75 -h 192.168.144.75 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Xerox Phaser 6180N PCL 6" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Xerox6180N\64Bit\xrxkrzi.inf"
rundll32 printui.dll,PrintUIEntry /if /b "Paw Paw Color" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Xerox6180N\64Bit\xrxkrzi.inf" /r "IP_192.168.144.75" /m "Xerox Phaser 6180N PCL 6"
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                        *Kinexus*                                    =
@ECHO =   Installation of the Xerox color printer has completed!            =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================
pause
exit

pause

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: Why are my arguments Invalid?

#2 Post by Squashman » 13 Apr 2016 12:35

Would help if you could troubleshoot your code and tell us what line in your code it is failing on.

kwsiebert
Posts: 43
Joined: 20 Jan 2016 15:46

Re: Why are my arguments Invalid?

#3 Post by kwsiebert » 13 Apr 2016 15:12

As I mentioned in your previous thread, no one else can test this because we don't have the same printers and network setup, so we need more information. Are your errors coming from the cscript lines? The rundll32 lines? I've never used rundll32, but the first Google result for "rundll32 printui.dll,PrintUIEntry" shows that /f and /F are different arguments, and while you use /F their example uses /f.

It's also possible that it only works on your laptop because the drivers are already present on your system, and you would get the same results if you fully removed them and all related files.

penpen
Expert
Posts: 2009
Joined: 23 Jun 2013 06:15
Location: Germany

Re: Why are my arguments Invalid?

#4 Post by penpen » 13 Apr 2016 17:17

In addition of what Squashman and kwsiebert wrote, such a part is just wrong:
wchristner wrote:

Code: Select all

set /p op=Type Choose your Printer:
if "%op%"=="1" goto :dockside color
if "%op%"=="2" goto :dockside black and white
if "%op%"=="3" goto :shoreline color
if "%op%"=="4" goto :shoreline b/w
if "%op%"=="5" goto :spinnaker
if "%op%"=="6" goto :all
Options "1" and "2" just goto the label ":dockside":
The space interrupts parsing the labels.
(Same for ":shoreline" and ... .)

And there is much suboptimal code making it not-easy-to-read; for example:
wchristner wrote:

Code: Select all

set IPADDRESS=192.168.141.20
ping -n 2 %ipaddress% | find "TTL=" > nul
if errorlevel 1 echo %ipaddress% %date% %time% >>"%userprofile%\desktop\failurelog.txt
set IPADDRESS=192.168.141.104
ping -n 2 %ipaddress% | find "TTL=" > nul
if errorlevel 1 echo %ipaddress% %date% %time% >>"%userprofile%\desktop\failurelog.txt
set IPADDRESS=192.168.141.250
ping -n 2 %ipaddress% | find "TTL=" > nul
if errorlevel 1 echo %ipaddress% %date% %time% >>"%userprofile%\desktop\failurelog.txt
set IPADDRESS=192.168.141.251
ping -n 2 %ipaddress% | find "TTL=" > nul
if errorlevel 1 echo %ipaddress% %date% %time% >>"%userprofile%\desktop\failurelog.txt
set IPADDRESS=192.168.141.53
ping -n 2 %ipaddress% | find "TTL=" > nul
if errorlevel 1 echo %ipaddress% %date% %time% >>"%userprofile%\desktop\failurelog.txt
You could use a for loop and delayed expansion to minimize the code (warning: untested):

Code: Select all

setlocal enableExtensions enableDelayedExpansion
for %%a in ("192.168.141.20" "192.168.141.104" "192.168.141.250" "192.168.141.251" "192.168.141.53") do (
   ping -n 2 %%a | find "TTL=" > nul
   if errorlevel 1 echo %%a !date! !time! >>"%userprofile%\desktop\failurelog.txt
)
endlocal
But this is not only optical:
You could make flaws only once, when using the for loop in the above source.

Another point is the redundant code you are using; for example:
You are using ":dockside black and white" label twice with nearly fully the same code.
You better could use batch-functions, so you could reuse your code; sample code reusing functions A and B:

Code: Select all

@echo off
goto ":dockside black and white"
goto ":dockside color"
call :A param1
call :B paramx
call :A param1
call :B paramy
echo ok
pause
goto :eof

:A
echo A %~1
goto :eof

:B
echo B %~1
goto :eof

Further potential for optimizing code are the nearly the same information blocks:
Could be encapsulated in functions, too.


penpen

kwsiebert
Posts: 43
Joined: 20 Jan 2016 15:46

Re: Why are my arguments Invalid?

#5 Post by kwsiebert » 13 Apr 2016 17:53

penpen wrote:In addition of what Squashman and kwsiebert wrote, such a part is just wrong:
wchristner wrote:

Code: Select all

set /p op=Type Choose your Printer:
if "%op%"=="1" goto :dockside color
if "%op%"=="2" goto :dockside black and white
if "%op%"=="3" goto :shoreline color
if "%op%"=="4" goto :shoreline b/w
if "%op%"=="5" goto :spinnaker
if "%op%"=="6" goto :all
Options "1" and "2" just goto the label ":dockside":
The space interrupts parsing the labels.
(Same for ":shoreline" and ... .)

In addition to the spaces breaking the labels, the documentation for goto says it only uses the first 8 characters of the label, so even without the spaces 1 and 2 would go to the same label, as would 3 and 4.

Edit: Actually, according to https://technet.microsoft.com/en-us/library/bb490914.aspx, spaces ARE valid, so the only problem is the label length. I've never actually tested this though.

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Why are my arguments Invalid?

#6 Post by foxidrive » 13 Apr 2016 20:00

kwsiebert wrote:the documentation for goto says it only uses the first 8 characters of the label


This applied in MSDOS days, it's not true in modern Windows. Was this in modern documentation?

Here's a test case - you can change the labels to test it further.

Code: Select all

@echo off
goto 12345678B
goto :eof

:12345678
echo 8 char & pause & goto :EOF

:12345678B
echo correct label & pause & goto :EOF

kwsiebert
Posts: 43
Joined: 20 Jan 2016 15:46

Re: Why are my arguments Invalid?

#7 Post by kwsiebert » 13 Apr 2016 21:00

foxidrive wrote:This applied in MSDOS days, it's not true in modern Windows. Was this in modern documentation?

The link in my previous post referred to Windows XP. I'll trust in your experience on this, I've never had reason to test long labels in my own work.

Aacini
Expert
Posts: 1914
Joined: 06 Dec 2011 22:15
Location: México City, México
Contact:

Re: Why are my arguments Invalid?

#8 Post by Aacini » 13 Apr 2016 21:45

Some time ago I wrote this description:

Aacini wrote:GOTO label

Transfer Batch file execution to another line. The label must be the first element of the line preceded by a colon and ends at the first delimiter character (space, comma, semicolon or equal-sign); the rest of the line is ignored, so it may be used to insert a comment. Labels included inside parentheses may cause problems in certain cases. Labels are never shown in the screen even if ECHO is ON.

Labels may have any number of significant characters although MS documentation still specify that labels can have a maximum of 8 characters (like in old MS-DOS days). When a GOTO command is executed, the target label is seek from the next line (after the currently parsed line or block) up to the end of the file; if not found, it is seek again from beginning of file up to the line containing the GOTO; if not found, the "Label not found" message is displayed.

... and this example program:

Code: Select all

@echo off

goto one rest
:one
echo Here at one

goto two,rest
:two
echo Here at two

goto three;rest
:three
echo Here at three

goto four=rest
:four
echo Here at four

goto abc!"#$/()?*{}[].-_xyz
:abc!"#$/()?*{}[].-_xyz
echo Here at abc!"#$/()?*{}[].-_xyz

goto abc!"#$/()?*{}[].-_xyzZ

Antonio

penpen
Expert
Posts: 2009
Joined: 23 Jun 2013 06:15
Location: Germany

Re: Why are my arguments Invalid?

#9 Post by penpen » 14 Apr 2016 03:27

kwsiebert wrote:Edit: Actually, according to https://technet.microsoft.com/en-us/library/bb490914.aspx, spaces ARE valid, so the only problem is the label length. I've never actually tested this though.
I suspect this information to be "formulated very very badly":
•Using valid Label values

You can use spaces in the Label parameter, but you cannot include other separators (for example, semicolons or equal signs).

I think they just wanted to say, that reaching labels with semicolons/equal signs/other delimiters in it is impossible - only space will work:

Code: Select all

@echo off
call :test A;B
call :test A=B
call :test A B
goto :eof

:test
goto :%~1

:A;B
echo A;B
goto :eof

:A=B
echo A=B
goto :eof

:A B
echo A B
goto :eof
Assumed reason: The characters semicolons/equal signs/... are separators in the "goto"-line, but not separators in the "label"-line.


foxidrive wrote:This applied in MSDOS days, it's not true in modern Windows. Was this in modern documentation?

No.


penpen

kwsiebert
Posts: 43
Joined: 20 Jan 2016 15:46

Re: Why are my arguments Invalid?

#10 Post by kwsiebert » 14 Apr 2016 07:45

penpen wrote:
foxidrive wrote:This applied in MSDOS days, it's not true in modern Windows. Was this in modern documentation?

No.


penpen

Thanks for the newer link. Oddly, Google only ever returns the older one on the first page of results when I search, so I've always been assuming it was correct.

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Why are my arguments Invalid?

#11 Post by foxidrive » 14 Apr 2016 15:30

penpen wrote:
foxidrive wrote:This applied in MSDOS days, it's not true in modern Windows. Was this in modern documentation?

No.

penpen


Dodgy Microsoft documentation - it's not the first time.

The feature that uses a registry key which allows you to run any program every time before cmd.exe loads, wasn't documented at all for a long time and caused havoc to so many places.

wchristner
Posts: 24
Joined: 06 May 2014 09:55
Location: North West Indiana

Re: Why are my arguments Invalid?

#12 Post by wchristner » 14 Apr 2016 22:26

Ok: Thanks everyone for your help. I will try to run the script again so I can get an error code and update everyone on where it is failing out. I got a lot of great advice and will monkey around with the code as soon as i can. pen pen thanks for the suggestion. I will use your code for pinging the printers before installing them. Genius. I an newer to batch scripting but so far I enjoy it.

Thanks again to everyone !!!

wchristner
Posts: 24
Joined: 06 May 2014 09:55
Location: North West Indiana

Re: Why are my arguments Invalid?

#13 Post by wchristner » 18 Apr 2016 11:18

Update: I have eddied my script a bit and I know I have not done some of the suggestions to clean up the code, I do apologize for that. I am still going to to work on this. I know my drivers point to a server as dose the prnport.vbs. I am wondering if I need to xcopy these drivers and .vbs to the local client then install. I got a screen shot of the errors. (Not sure how to display them :?: ), a quick lesson on how or if I can display Images would probably help everyone. I am going to try and use xcopy unless someone has a suggestion. Those files are on my computer locally so I am going t to give it a shot.

Thanks to all for any help, opinions, or advice you have to offer. This is an awesome Forum and I hope to contribute by giving someone else an answer as I improve my skills. :D

Code: Select all

@Title Kinexus Printer Install
@echo off
@echo Making sure all printers are online before adding...
@echo.
@echo ================
@Echo Benton Harbor
@echo ================
setlocal enableExtensions enableDelayedExpansion
for %%a in ("192.168.141.20" "192.168.141.104" "192.168.141.250" "192.168.141.251" "192.168.141.53") do (
   ping -n 2 %%a | find "TTL=" > nul
   if errorlevel 1 echo %%a !date! !time! >>"%userprofile%\desktop\failurelog.txt
)
endlocal
@echo.
@echo ================
@echo Bridge Academy
@echo ================
setlocal enableExtensions enableDelayedExpansion
for %%a in ("192.168.141.20" "192.168.109.9") do (
   ping -n 2 %%a | find "TTL=" > nul
   if errorlevel 1 echo %%a !date! !time! >>"%userprofile%\desktop\failurelog.txt
)
endlocal
@echo.
@echo ================
@echo Dowagic
@echo ================
setlocal enableExtensions enableDelayedExpansion
for %%a in ("192.168.141.20" "192.168.142.23" "192.168.142.25") do (
   ping -n 2 %%a | find "TTL=" > nul
   if errorlevel 1 echo %%a !date! !time! >>"%userprofile%\desktop\failurelog.txt
)
endlocal
@echo.
@echo ================
@echo PawPaw
@echo ================
setlocal enableExtensions enableDelayedExpansion
for %%a in ("192.168.144.80" "192.168.144.57") do (
   ping -n 2 %%a | find "TTL=" > nul
   if errorlevel 1 echo %%a !date! !time! >>"%userprofile%\desktop\failurelog.txt
)
endlocal



cls
@echo off
@echo off
@echo off
@echo.
echo==================
echo Which Location?
@echo.
echo Please choose 1-4
echo==================
@echo.
@echo off
echo 1)Benton Harbor
echo 2)Bridge Academy
echo 3)Dowagiac
echo 4)PawPaw

:choice
set /p op=Choose your Location:
if "%op%"=="1" goto :ben
if "%op%"=="2" goto :bri
if "%op%"=="3" goto :dow
if "%op%"=="4" goto :paw
echo Please Choose 1-4
goto choice


@echo.
@echo.
:ben
cls
@echo off
@echo off
@echo off
@echo.
echo=============================
echo Which Benton Harbor Printer?
echo=============================
@echo.
@echo off
echo 1)DockSide Color
echo 2)DoclSide Black and White
echo 3)Shoreline Color
echo 4)Shoreline B/W
echo 5)Spinnaker
ECHO 6)All

:option
set /p op=Type Choose your Printer:
if "%op%"=="1" goto :dock c
if "%op%"=="2" goto :dock b/w
if "%op%"=="3" goto :shore c
if "%op%"=="4" goto :shore b/w
if "%op%"=="5" goto :spin
if "%op%"=="6" goto :all

echo Please Choose 1-6
goto option

:dock c
cls
@echo  #######################################################################
@echo #                                                                       #
@echo #                         *Kinexus*                                     #
@echo #                                                                       #
@echo # This will Install Ricoh color Dockside printer on your computer.      #
@echo # Once you click OK, it will run. It may take a minute to install.      #
@echo # During that time you will see no screen activity until it finishes.   #
@echo # Installing Printer.... please wait                                    #
@echo.#                                                                       #
@echo  #######################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.141.20 -h 192.168.141.20 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Ricoh Aficio MP C6000 PS" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Ricoh MP6501\Win 10\oemsetup.inf"
rundll32 printui.dll,PrintUIEntry /if /b "BH Dockside Color" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Ricoh MP6501\Win 10\oemsetup.inf" /r "IP_192.168.141.20" /m "Ricoh Aficio MP C6000 PS"
@echo.
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                         *Kinexus*                                   =
@ECHO =   Installation of the Ricoh printer has completed!                  =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================
pause
exit

:dock b/w
cls
@echo  #######################################################################
@echo #                                                                       #
@echo #                         *Kinexus*                                     #
@echo #                                                                       #
@echo # This will Install Ricoh B/W Dockside printer on your computer.        #
@echo # Once you click OK, it will run. It may take a minute to install.      #
@echo # During that time you will see no screen activity until it finishes.   #
@echo # Installing Printer.... please wait                                    #
@echo.#                                                                       #
@echo  #######################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.141.250 -h 192.168.141.250 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "RICOH Aficio MP 6500 PCL" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP C6502 PCL\disk\OEMSETUP.INF"
rundll32 printui.dll,PrintUIEntry /if /b "BH Dockside Black and White" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP C6502 PCL\disk\OEMSETUP.INF" /r "IP_192.168.141.250" /m "RICOH Aficio MP 6500 PCL"
@echo.
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                         *Kinexus*                                   =
@ECHO =   Installation of the Ricoh printer has completed!                  =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================
pause
exit


:shore c
@echo  #######################################################################
@echo #                                                                       #
@echo #                         *Kinexus*                                     #
@echo #                                                                       #
@echo # This will Install Ricoh color Shoreline printer on your computer.     #
@echo # Once you click OK, it will run. It may take a minute to install.      #
@echo # During that time you will see no screen activity until it finishes.   #
@echo # Installing Printer.... please wait                                    #
@echo.#                                                                       #
@echo  #######################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.141.104 -h 192.168.141.104 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Ricoh Aficio MP 6000 PS" /F "\\bh-miworks-srv2\PrintDrivers\Ricoh MP c6502 Shoreline color\Win 10\disk1\oemsetup.inf"
rundll32 printui.dll,PrintUIEntry /if /b "BH Shoreline Color" /F "\\bh-miworks-srv2\PrintDrivers\Ricoh MP c6502 Shoreline color\Win 10\disk1\oemsetup.inf" /r "IP_192.168.141.104" /m "Ricoh Aficio MP 6000 PS"
@echo.
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                         *Kinexus*                                   =
@ECHO =   Installation of the Ricoh printer has completed!                  =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================
pause
exit

:shore b/w
@echo  #######################################################################
@echo #                                                                       #
@echo #                         *Kinexus*                                     #
@echo #                                                                       #
@echo # This will Install Ricoh B/W Shoreline printer on your computer.       #
@echo # Once you click OK, it will run. It may take a minute to install.      #
@echo # During that time you will see no screen activity until it finishes.   #
@echo # Installing Printer.... please wait                                    #
@echo.#                                                                       #
@echo  #######################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.141.251 -h 192.168.141.251 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Ricoh Aficio MP 6000 PCL" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf"
rundll32 printui.dll,PrintUIEntry /if /b "BH Shoreline Black and White" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf" /r "IP_192.168.141.251" /m "Ricoh Aficio MP 6000 PCL"
@echo.
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                         *Kinexus*                                   =
@ECHO =   Installation of the Ricoh printer has completed!                  =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================
pause
exit


:spin
@echo  #######################################################################
@echo #                                                                       #
@echo #                         *Kinexus*                                     #
@echo #                                                                       #
@echo # This will Install Ricoh B/W Spannaker printer on your computer.       #
@echo # Once you click OK, it will run. It may take a minute to install.      #
@echo # During that time you will see no screen activity until it finishes.   #
@echo # Installing Printer.... please wait                                    #
@echo.#                                                                       #
@echo  #######################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.141.53 -h 192.168.141.53 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Ricoh Aficio MP 6000 PCL" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf"
rundll32 printui.dll,PrintUIEntry /if /b "BH Spannaker Black and White" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf" /r "IP_192.168.141.53" /m "Ricoh Aficio MP 6000 PCL"
@echo.
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                         *Kinexus*                                   =
@ECHO =   Installation of the Ricoh printer has completed!                  =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================
pause
exit








:all
:dock c
cls
@echo  #######################################################################
@echo #                                                                       #
@echo #                         *Kinexus*                                     #
@echo #                                                                       #
@echo # This will Install Ricoh color Dockside printer on your computer.      #
@echo # Once you click OK, it will run. It may take a minute to install.      #
@echo # During that time you will see no screen activity until it finishes.   #
@echo # Installing Printer.... please wait                                    #
@echo.#                                                                       #
@echo  #######################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.141.20 -h 192.168.141.20 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Ricoh Aficio MP C6000 PS" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Ricoh MP6501\Win 10\oemsetup.inf"
rundll32 printui.dll,PrintUIEntry /if /b "BH Dockside Color" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Ricoh MP6501\Win 10\oemsetup.inf" /r "IP_192.168.141.20" /m "Ricoh Aficio MP C6000 PS"
@echo.
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                        *Kinexus*                                    =
@ECHO =   Installation of the Ricoh printer has completed!                  =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================


:dock b/w
cls
@echo  #######################################################################
@echo #                                                                       #
@echo #                         *Kinexus*                                     #
@echo #                                                                       #
@echo # This will Install Ricoh B/W Dockside printer on your computer.        #
@echo # Once you click OK, it will run. It may take a minute to install.      #
@echo # During that time you will see no screen activity until it finishes.   #
@echo # Installing Printer.... please wait                                    #
@echo.#                                                                       #
@echo  #######################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.141.250 -h 192.168.141.250 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "RICOH Aficio MP 6500 PCL" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP C6502 PCL\disk\OEMSETUP.INF"
rundll32 printui.dll,PrintUIEntry /if /b "BH Dockside Black and White" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP C6502 PCL\disk\OEMSETUP.INF" /r "IP_192.168.141.250" /m "RICOH Aficio MP 6500 PCL"
@echo.
@echo.
@echo   ====================================================================
@echo  =                                                                    =
@echo  =                       *Kinexus*                                    =
@ECHO  =  Installation of the Ricoh printer has completed!                  =
@echo  =  If you have any problems, please contact IT.                      =
@echo  =                                                                    =
@echo   ====================================================================



:shore c
cls
@echo  #######################################################################
@echo #                                                                       #
@echo #                         *Kinexus*                                     #
@echo #                                                                       #
@echo # This will Install Ricoh color Shoreline printer on your computer.     #
@echo # Once you click OK, it will run. It may take a minute to install.      #
@echo # During that time you will see no screen activity until it finishes.   #
@echo # Installing Printer.... please wait                                    #
@echo.#                                                                       #
@echo  #######################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.141.104 -h 192.168.141.104 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Ricoh Aficio MP 6000 PS" /F "\\bh-miworks-srv2\PrintDrivers\Ricoh MP c6502 Shoreline color\Win 10\disk1\oemsetup.inf"
rundll32 printui.dll,PrintUIEntry /if /b "BH Shoreline Color" /F "\\bh-miworks-srv2\PrintDrivers\Ricoh MP c6502 Shoreline color\Win 10\disk1\oemsetup.inf" /r "IP_192.168.141.104" /m "Ricoh Aficio MP 6000 PS"
@echo.
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                        *Kinexus*                                    =
@ECHO =   Installation of the Ricoh printer has completed!                  =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================


:shore b/w
cls
@echo  #######################################################################
@echo #                                                                       #
@echo #                         *Kinexus*                                     #
@echo #                                                                       #
@echo # This will Install Ricoh B/W Shoreline printer on your computer.       #
@echo # Once you click OK, it will run. It may take a minute to install.      #
@echo # During that time you will see no screen activity until it finishes.   #
@echo # Installing Printer.... please wait                                    #
@echo.#                                                                       #
@echo  #######################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.141.251 -h 192.168.141.251 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Ricoh Aficio MP 6000 PCL" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf"
rundll32 printui.dll,PrintUIEntry /if /b "BH Shoreline Black and White" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf" /r "IP_192.168.141.251" /m "Ricoh Aficio MP 6000 PCL"
@echo.
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                        *Kinexus*                                    =
@ECHO =   Installation of the Ricoh printer has completed!                  =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================


:spin
cls
@echo  #######################################################################
@echo #                                                                       #
@echo #                         *Kinexus*                                     #
@echo #                                                                       #
@echo # This will Install Ricoh B/W Spannaker printer on your computer.       #
@echo # Once you click OK, it will run. It may take a minute to install.      #
@echo # During that time you will see no screen activity until it finishes.   #
@echo # Installing Printer.... please wait                                    #
@echo.#                                                                       #
@echo  #######################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.141.53 -h 192.168.141.53 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Ricoh Aficio MP 6000 PCL" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf"
rundll32 printui.dll,PrintUIEntry /if /b "BH Spannaker Black and White" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf" /r "IP_192.168.141.53" /m "Ricoh Aficio MP 6000 PCL"
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                        *Kinexus*                                    =
@ECHO =   Installation of the  printers has completed!                      =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================
pause
exit




:bri
cls
@echo  #######################################################################
@echo #                                                                       #
@echo #                         *Kinexus*                                     #
@echo #                                                                       #
@echo # This will Install Ricoh B/W Bridge Academy printer on your computer.  #
@echo # Once you click OK, it will run. It may take a minute to install.      #
@echo # During that time you will see no screen activity until it finishes.   #
@echo # Installing Printer.... please wait                                    #
@echo.#                                                                       #
@echo  #######################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.190.9 -h 192.168.190.9 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "RICOH Aficio MP 7001 PCL 6" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Rioch MP 7001\r67293en\disk1\oemsetup.inf"
rundll32 printui.dll,PrintUIEntry /if /b "Bridge Academy Black and White" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Rioch MP 7001\r67293en\disk1\oemsetup.inf" /r "IP_192.168.190.9" /m "RICOH Aficio MP 7001 PCL 6"
@echo.
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                        *Kinexus*                                    =
@ECHO =   Installation of the Ricoh printer has completed!                  =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================
pause
exit

:dow
@echo.
echo=============================
echo Which Dowagiac Printer?
echo=============================
@echo.
@echo off
echo 1)Dowagic Color
echo 2)Dowagic Black and White
echo 3)Both

:option2
set /p op=Type Choose your Printer:
if "%op%"=="1" goto :dow b/w
if "%op%"=="2" goto :dow c
if "%op%"=="3" goto :both1


echo Please Choose 1-3
goto option2

:dow b/w
cls
@echo  ########################################################################
@echo #                                                                        #
@echo #                          *Kinexus*                                     #
@echo #                                                                        #
@echo #  This will Install Ricoh B/W Dowagiac printer on your computer.        #
@echo #  Once you click OK, it will run. It may take a minute to install.      #
@echo #  During that time you will see no screen activity until it finishes.   #
@echo #  Installing Printer.... please wait                                    #
@echo.#                                                                        #
@echo  ########################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.142.25 -h 192.168.142.25 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Ricoh Aficio MP 6000 PCL" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf"
rundll32 printui.dll,PrintUIEntry /if /b "Dowagic Black and White" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf" /r "IP_192.168.142.25" /m "Ricoh Aficio MP 6000 PCL"
@echo.
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                        *Kinexus*                                    =
@ECHO =   Installation of the Ricoh printer has completed!                  =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================
pause
exit

:dow c
@echo  #######################################################################
@echo #                                                                       #
@echo #                         *Kinexus*                                     #
@echo #                                                                       #
@echo # This will Install Xerox color printer on your computer.               #
@echo # Once you click OK, it will run. It may take a minute to install.      #
@echo # During that time you will see no screen activity until it finishes.   #
@echo # Installing Printer.... please wait                                    #
@echo.#                                                                       #
@echo  #######################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.142.23 -h 192.168.142.23 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Xerox Phaser 6180N PCL 6" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Xerox6180N\64Bit\xrxkrzi.inf"
rundll32 printui.dll,PrintUIEntry /if /b "Dowagic Color" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Xerox6180N\64Bit\xrxkrzi.inf" /r "IP_192.168.142.23" /m "Xerox Phaser 6180N PCL 6"
@echo.
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                        *Kinexus*                                    =
@ECHO =   Installation of the Xerox color printer has completed!            =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================
pause
exit


:both1
cls
@echo  ########################################################################
@echo #                                                                        #
@echo #                          *Kinexus*                                     #
@echo #                                                                        #
@echo #  This will Install Ricoh B/W Dowagiac printer on your computer.        #
@echo #  Once you click OK, it will run. It may take a minute to install.      #
@echo #  During that time you will see no screen activity until it finishes.   #
@echo #  Installing Printer.... please wait                                    #
@echo.#                                                                        #
@echo  ########################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.142.25 -h 192.168.142.25 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Ricoh Aficio MP 6000 PCL" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf"
rundll32 printui.dll,PrintUIEntry /if /b "Dowagic Black and White" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf" /r "IP_192.168.142.25" /m "Ricoh Aficio MP 6000 PCL"
@echo.
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                        *Kinexus*                                    =
@ECHO =   Installation of the Ricoh printer has completed!                  =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================
@echo.
@echo.
@echo  #######################################################################
@echo #                                                                       #
@echo #                         *Kinexus*                                     #
@echo #                                                                       #
@echo # This will Install Xerox color printer on your computer.               #
@echo # Once you click OK, it will run. It may take a minute to install.      #
@echo # During that time you will see no screen activity until it finishes.   #
@echo # Installing Printer.... please wait                                    #
@echo.#                                                                       #
@echo  #######################################################################
@echo.
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.142.23 -h 192.168.142.23 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Xerox Phaser 6180N PCL 6" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Xerox6180N\64Bit\xrxkrzi.inf"
rundll32 printui.dll,PrintUIEntry /if /b "Dowagic Color" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Xerox6180N\64Bit\xrxkrzi.inf" /r "IP_192.168.142.23" /m "Xerox Phaser 6180N PCL 6"
@echo.
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                        *Kinexus*                                    =
@ECHO =   Installation of the Xerox color printer has completed!            =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================
pause
exit
@echo.
:paw
echo=============================
echo Which Paw Paw Printer?
echo=============================
@echo.
@echo off
echo 1)Paw Paw color
echo 2)Paw Paw Black & White
ECHO 3)Both

:option2
set /p op=Type Choose your Printer:
if "%op%"=="1" goto :paw c
if "%op%"=="2" goto :paw b/w
if "%op%"=="3" goto :both2


echo Please Choose 1-3
goto option2

:paw b/w
cls
@echo  ########################################################################
@echo #                                                                        #
@echo #                          *Kinexus*                                     #
@echo #                                                                        #
@echo #  This will Install Paw Paw Ricoh MP 6002 printer on your computer.     #
@echo #  Once you click OK, it will run. It may take a minute to install.      #
@echo #  During that time you will see no screen activity until it finishes.   #
@echo #  Installing Printer.... please wait                                    #
@echo.#                                                                        #
@echo # #######################################################################
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.144.80 -h 192.168.144.80 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Ricoh Aficio MP 6000 PCL" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf"
rundll32 printui.dll,PrintUIEntry /if /b "BH Paw Paw Black and White" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf" /r "IP_192.168.144.80" /m "Ricoh Aficio MP 6000 PCL"
@echo  ====================================================================
@echo =                                                                    =
@echo =                        *Kinexus*                                   =
@ECHO =  Installation of the Ricoh printer has completed!                  =
@echo =  If you have any problems, please contact IT.                      =
@echo =                                                                    =
@echo  ====================================================================
cls

:paw c
@echo  ########################################################################                                     
@echo #                                                                        #
@echo #                          *Kinexus*                                     #
@echo #                                                                        #
@echo #  This will Install the Xerox printer on your computer.                 #
@echo #  Once you click OK, it will run. It may take a minute to install.      #
@echo #  During that time you will see no screen activity until it finishes.   #
@echo #  Installing Printer.... please wait                                    #
@echo.#                                                                        #
@echo  ########################################################################
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.144.75 -h 192.168.144.75 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Xerox Phaser 6180N PCL 6" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Xerox6180N\64Bit\xrxkrzi.inf"
rundll32 printui.dll,PrintUIEntry /if /b "Paw Paw Color" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Xerox6180N\64Bit\xrxkrzi.inf" /r "IP_192.168.144.75" /m "Xerox Phaser 6180N PCL 6"
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                        *Kinexus*                                    =
@ECHO =   Installation of the Xerox color printer has completed!            =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================
pause
exit


:both2
cls
@echo  ########################################################################
@echo #                                                                        #
@echo #                          *Kinexus*                                     #
@echo #                                                                        #
@echo #  This will Install Paw Paw Ricoh MP 6002 printer on your computer.     #
@echo #  Once you click OK, it will run. It may take a minute to install.      #
@echo #  During that time you will see no screen activity until it finishes.   #
@echo #  Installing Printer.... please wait                                    #
@echo.#                                                                        #
@echo # #######################################################################
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.144.80 -h 192.168.144.80 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Ricoh Aficio MP 6000 PCL" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf"
rundll32 printui.dll,PrintUIEntry /if /b "BH Paw Paw Black and White" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\RICOH Aficio MP 6002 PCL\oemsetup.inf" /r "IP_192.168.144.80" /m "Ricoh Aficio MP 6000 PCL"
@echo  ====================================================================
@echo =                                                                    =
@echo =                        *Kinexus*                                   =
@ECHO =  Installation of the Ricoh printer has completed!                  =
@echo =  If you have any problems, please contact IT.                      =
@echo =                                                                    =
@echo  ====================================================================
@echo.
@echo.
cls
@echo  ########################################################################                                     
@echo #                                                                        #
@echo #                          *Kinexus*                                     #
@echo #                                                                        #
@echo #  This will Install the Xerox printer on your computer.                 #
@echo #  Once you click OK, it will run. It may take a minute to install.      #
@echo #  During that time you will see no screen activity until it finishes.   #
@echo #  Installing Printer.... please wait                                    #
@echo.#                                                                        #
@echo  ########################################################################
@echo.
cscript \\bh-miworks-srv2\PrintDrivers\Printing_Admin_Scripts\en-US\prnport.vbs -a -r IP_192.168.144.75 -h 192.168.144.75 -o raw -n 9100
rundll32 printui.dll,PrintUIEntry /ia /m "Xerox Phaser 6180N PCL 6" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Xerox6180N\64Bit\xrxkrzi.inf"
rundll32 printui.dll,PrintUIEntry /if /b "Paw Paw Color" /F "\\bh-miworks-srv2\PrintDrivers\Drivers\Xerox6180N\64Bit\xrxkrzi.inf" /r "IP_192.168.144.75" /m "Xerox Phaser 6180N PCL 6"
@echo.
@echo  =====================================================================
@echo =                                                                     =
@echo =                        *Kinexus*                                    =
@ECHO =   Installation of the Xerox color printer has completed!            =
@echo =   If you have any problems, please contact IT.                      =
@echo =                                                                     =
@echo  =====================================================================
pause
exit

pause

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Why are my arguments Invalid?

#14 Post by foxidrive » 18 Apr 2016 18:14

Upload/Paste your images to http://imgur.com/ and copy the direct links - then include the links in your reply wrapped in img tags.

The images should display in the post - there may be a limit of 2 images per post.

wchristner
Posts: 24
Joined: 06 May 2014 09:55
Location: North West Indiana

Re: Why are my arguments Invalid?

#15 Post by wchristner » 19 Apr 2016 07:47

Errors: Again the drivers and .vbs point to a location on the server so I don't know why its not working. I think an x-copy is my next step.

Image

Image

Post Reply