From 321cfa82e1e9d63d356e3a51901464fae9b2622e Mon Sep 17 00:00:00 2001 From: USER Date: Fri, 20 Jan 2023 11:30:23 +0000 Subject: [PATCH] . --- l_AddPrinters.bat | 77 +++++++++++++++-------------------------------- 1 file changed, 24 insertions(+), 53 deletions(-) diff --git a/l_AddPrinters.bat b/l_AddPrinters.bat index 6b24aaf..e9c1099 100644 --- a/l_AddPrinters.bat +++ b/l_AddPrinters.bat @@ -22,66 +22,37 @@ if "%USERNAME%" == "zuper" ( set ZUPER=1 ) -@REM if "%check_computername%" EQU "SURGERY1" ( -@REM set PRINTER=3 -@REM echo "Installing printers"" -@REM %EXE% -ExecutionPolicy Bypass -File %BROTHERPS% -@REM %EXE% -ExecutionPolicy Bypass -File %ZEBRAPS% -@REM ) +if "%check_computername%" EQU "SURGERY1" ( + set PRINTER=3 +) -@REM if "%check_computername%" EQU "SURGERY2" ( -@REM set PRINTER=3 -@REM echo "Installing printers"" -@REM %EXE% -ExecutionPolicy Bypass -File %BROTHERPS% -@REM %EXE% -ExecutionPolicy Bypass -File %ZEBRAPS% -@REM ) +if "%check_computername%" EQU "SURGERY2" ( + set PRINTER=3 +) -@REM if "%check_computername%" EQU "SURGERY3" ( -@REM set PRINTER=3 -@REM echo "Installing printers"" -@REM %EXE% -ExecutionPolicy Bypass -File %BROTHERPS% -@REM %EXE% -ExecutionPolicy Bypass -File %ZEBRAPS% -@REM ) +if "%check_computername%" EQU "SURGERY3" ( + set PRINTER=3 +) -@REM if "%check_computername%" EQU "SURGERY4" ( -@REM set PRINTER=3 -@REM echo "Installing printers"" -@REM %EXE% -ExecutionPolicy Bypass -File %BROTHERPS% -@REM %EXE% -ExecutionPolicy Bypass -File %ZEBRAPS% -@REM ) +if "%check_computername%" EQU "SURGERY4" ( + set PRINTER=3 +) -@REM if "%check_computername%" EQU "RECEPTION1" ( -@REM set PRINTER=3 -@REM echo "Installing printers"" -@REM %EXE% -ExecutionPolicy Bypass -File %BROTHERPS% -@REM @REM %EXE% -ExecutionPolicy Bypass -File %ZEBRAPS% -@REM ) +if "%check_computername%" EQU "RECEPTION1" ( + set PRINTER=2 +) -@REM if "%check_computername%" EQU "RECEPTION2" ( -@REM set PRINTER=3 -@REM echo "Installing printers"" -@REM @REM %EXE% -ExecutionPolicy Bypass -File %BROTHERPS% -@REM %EXE% -ExecutionPolicy Bypass -File %ZEBRAPS% -@REM ) +if "%check_computername%" EQU "RECEPTION2" ( + set PRINTER=1 +) -@REM if "%check_computername%" EQU "RECEPTION3" ( -@REM set PRINTER=3 -@REM echo "Installing printers"" -@REM %EXE% -ExecutionPolicy Bypass -File %BROTHERPS% -@REM @REM %EXE% -ExecutionPolicy Bypass -File %ZEBRAPS% -@REM ) +if "%check_computername%" EQU "RECEPTION3" ( + set PRINTER=1 +) -@REM if "%check_computername%" EQU "RECEPTION4" ( -@REM set PRINTER=3 -@REM echo "Installing printers"" -@REM %EXE% -ExecutionPolicy Bypass -File %BROTHERPS% -@REM @REM %EXE% -ExecutionPolicy Bypass -File %ZEBRAPS% -@REM ) - -@REM if "%check_computername%" EQU "SURGERY2" ( -@REM set PRINTER=3 -@REM echo "Installing printers"" -@REM ) +if "%check_computername%" EQU "RECEPTION4" ( + set PRINTER=1 +) if [%ZUPER%] == [1] ( echo "Not installing printers"