This commit is contained in:
USER
2025-08-22 12:11:48 +01:00
parent 8202867bed
commit 3de28867b2
4 changed files with 45 additions and 24 deletions

View File

@ -3,26 +3,6 @@ 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
@ -85,7 +65,6 @@ exit /b
check printers
check exact
check examinepro
check daryou