@echo off setlocal cd /d "%~dp0" if not exist "OPCUAClientService.exe" ( echo ERROR: OPCUAClientService.exe fehlt. exit /b 1 ) "%~dp0OPCUAClientService.exe" stop "%~dp0OPCUAClientService.exe" uninstall