.
This commit is contained in:
19
SystemChecks/CheckExact.bat
Normal file
19
SystemChecks/CheckExact.bat
Normal 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
|
||||
|
||||
@ -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 (
|
||||
|
||||
23
SystemChecks/CheckPrinterZebra.bat
Normal file
23
SystemChecks/CheckPrinterZebra.bat
Normal 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
|
||||
@ -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