.
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user