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