From 8202867bed105fee508922ec105d0b7ab4ad38bc Mon Sep 17 00:00:00 2001 From: USER Date: Fri, 22 Aug 2025 11:51:54 +0100 Subject: [PATCH] . --- SystemChecks/CheckPrinterBrother.bat | 23 +++++++ SystemChecks/test.bat | 96 ++++++++++++++++++++++++++++ 2 files changed, 119 insertions(+) create mode 100644 SystemChecks/CheckPrinterBrother.bat create mode 100644 SystemChecks/test.bat diff --git a/SystemChecks/CheckPrinterBrother.bat b/SystemChecks/CheckPrinterBrother.bat new file mode 100644 index 0000000..9bbe6b7 --- /dev/null +++ b/SystemChecks/CheckPrinterBrother.bat @@ -0,0 +1,23 @@ +ECHO OFF +set path=%PATH%;c:\daryoubutton;C:\Windows\twain_32\DY50TWAIN + +set myPrintServer=RECEPTION1 +set myPrinter=BROTHER + + +REM Check if myPrintServer is reachable +ping -n 1 %myPrintServer% >nul 2>&1 +if errorlevel 1 ( + echo "%myPrintServer% is not reachable" + exit /b +) + +REM Check if myPrinter is available +rundll32 printui.dll,PrintUIEntry /q /s /t1 /n "\\%myPrintServer%\%myPrinter%" >nul 2>&1 +if errorlevel 1 ( + echo Printer %myPrinter% is not available. +) else ( + echo Printer %myPrinter% is available. +) + +exit /b \ No newline at end of file diff --git a/SystemChecks/test.bat b/SystemChecks/test.bat new file mode 100644 index 0000000..c905f29 --- /dev/null +++ b/SystemChecks/test.bat @@ -0,0 +1,96 @@ +ECHO OFF +set path=%PATH%;c:\daryoubutton;C:\Windows\twain_32\DY50TWAIN + + + +@echo off +set printerPath=\\server2\zebra + +REM Check if the server is reachable +ping -n 1 server2 >nul 2>&1 +if errorlevel 1 ( + echo Server is not reachable. + exit /b +) + +REM Check if the printer is available +rundll32 printui.dll,PrintUIEntry /q /s /t1 /n "%printerPath%" >nul 2>&1 +if errorlevel 1 ( + echo Printer %printerPath% is not available. +) else ( + echo Printer %printerPath% is available. +) + +exit /b + + +@echo off +set directoryPath=C:\path\to\your\directory + +REM Check if the directory exists +if exist "%directoryPath%" ( + echo Directory %directoryPath% exists. +) else ( + echo Directory %directoryPath% does not exist. +) + +exit /b + +@echo off +setlocal + +REM Define the path to the LibreOffice installation +set libreOfficePath="C:\Program Files\LibreOffice\program\soffice.exe" + +REM Check if the script is running on reception2 +if /I "%COMPUTERNAME%" NEQ "reception2" ( + echo This script must be run on reception2. + exit /b +) + +REM Check if LibreOffice is installed +if exist %libreOfficePath% ( + echo LibreOffice is installed. +) else ( + echo LibreOffice is not installed. +) + +endlocal +exit /b + + + +@echo off +setlocal + +REM Define the path to the LibreOffice installation +set libreOfficePath="C:\Program Files\LibreOffice\program\soffice.exe" + +REM Check if the computer name contains "reception" +echo %COMPUTERNAME% | find /I "reception" >nul +if errorlevel 1 ( + echo This script must be run on a machine with "reception" in its name. + exit /b +) + +REM Check if LibreOffice is installed +if exist %libreOfficePath% ( + echo LibreOffice is installed. +) else ( + echo LibreOffice is not installed. +) + +endlocal +exit /b + + + +check printers +check exact +check examinepro +check daryou +check kavo +check libreoffice + + +