Files
wLocal/SystemChecks/test.bat
USER 3de28867b2 .
2025-08-22 12:11:48 +01:00

76 lines
1.3 KiB
Batchfile

ECHO OFF
set path=%PATH%;c:\daryoubutton;C:\Windows\twain_32\DY50TWAIN
@echo off
set directoryPath=C:\path\to\your\directory
REM Check if the directory exists
if exist "%directoryPath%" (
echo Directory %directoryPath% exists.
) else (
echo Directory %directoryPath% does not exist.
)
exit /b
@echo off
setlocal
REM Define the path to the LibreOffice installation
set libreOfficePath="C:\Program Files\LibreOffice\program\soffice.exe"
REM Check if the script is running on reception2
if /I "%COMPUTERNAME%" NEQ "reception2" (
echo This script must be run on reception2.
exit /b
)
REM Check if LibreOffice is installed
if exist %libreOfficePath% (
echo LibreOffice is installed.
) else (
echo LibreOffice is not installed.
)
endlocal
exit /b
@echo off
setlocal
REM Define the path to the LibreOffice installation
set libreOfficePath="C:\Program Files\LibreOffice\program\soffice.exe"
REM Check if the computer name contains "reception"
echo %COMPUTERNAME% | find /I "reception" >nul
if errorlevel 1 (
echo This script must be run on a machine with "reception" in its name.
exit /b
)
REM Check if LibreOffice is installed
if exist %libreOfficePath% (
echo LibreOffice is installed.
) else (
echo LibreOffice is not installed.
)
endlocal
exit /b
check exact
check examinepro
check daryou
check kavo
check libreoffice