This commit is contained in:
USER
2025-08-22 11:51:54 +01:00
parent 10594ea48f
commit 8202867bed
2 changed files with 119 additions and 0 deletions

View File

@ -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