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

@ -0,0 +1,19 @@
ECHO OFF
set path=%PATH%
set Software="LibreOffice"
set SoftwarePath="C:\Program Files\LibreOffice\program\soffice.exe"
echo %1
echo %2
REM Check if LibreOffice is installed
if exist %SoftwarePath% (
echo "%Software% is installed"
) else (
echo "%Software% is not installed"
)
exit /b

View File

@ -1,7 +1,7 @@
ECHO OFF
set path=%PATH%;c:\daryoubutton;C:\Windows\twain_32\DY50TWAIN
set path=%PATH%
set myPrintServer=RECEPTION1
set myPrintServer=RECEPTION2
set myPrinter=BROTHER
@ -13,7 +13,7 @@ if errorlevel 1 (
)
REM Check if myPrinter is available
rundll32 printui.dll,PrintUIEntry /q /s /t1 /n "\\%myPrintServer%\%myPrinter%" >nul 2>&1
rundll32 printui.dll,PrintUIEntry /q /t1 /n "\\%myPrintServer%\%myPrinter%" >nul 2>&1
if errorlevel 1 (
echo Printer %myPrinter% is not available.
) else (

View File

@ -0,0 +1,23 @@
ECHO OFF
set path=%PATH%
set myPrintServer=RECEPTION1
set myPrinter=ZEBRA
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 /t1 /n "\\%myPrintServer%\%myPrinter%" >nul 2>&1
if errorlevel 1 (
echo Printer %myPrinter% is not available.
) else (
echo Printer %myPrinter% is available.
)
exit /b

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