From fe88e3aed20219aa33ad10cd6973ba578a4b3588 Mon Sep 17 00:00:00 2001 From: USER Date: Thu, 20 Apr 2023 18:02:22 +0100 Subject: [PATCH] . --- test.bat | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test.bat b/test.bat index da27b8b..5c02bf2 100644 --- a/test.bat +++ b/test.bat @@ -61,14 +61,16 @@ if [%ZUPER%] == [1] ( if [%PRINTER%] == [1] ( echo "Installing Brother" @REM %EXE% -ExecutionPolicy Bypass -File %BROTHERPS% - rundll32 printui.dll,PrintUIEntry /in /n \\192.168.1.22\brother + @REM rundll32 printui.dll,PrintUIEntry /in /n \\192.168.1.22\brother + cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\192.168.1.22\brother" @REM rundll32 printui.dll,PrintUIEntry /y /n \\server_name\printer_name ) if [%PRINTER%] == [2] ( echo "Installing Zebra" @REM %EXE% -ExecutionPolicy Bypass -File %ZEBRAPS% CD C:\WINDOWS\SYSTEM - rundll32 printui.dll,PrintUIEntry /in /n \\192.168.1.21\zebra + @REM rundll32 printui.dll,PrintUIEntry /in /n \\192.168.1.21\zebra + cscript "C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -ac -p "\\192.168.1.21\zebra" @REM rundll32 printui.dll,PrintUIEntry /y /n \\server_name\printer_name ) if [%PRINTER%] == [3] (