@echo off setlocal set "SECRET_FILE=%LOCALAPPDATA%\DataTerminalHardwareAgent\server-device-secret" set "DEVICE_EXE=%~dp0hardware-agent-tester-0.3.5-windows-x64.exe" if not exist "%DEVICE_EXE%" set "DEVICE_EXE=%~dp0release\hardware-agent-tester-0.3.5-windows-x64.exe" if not exist "%SECRET_FILE%" ( echo Cloud device credential is missing: %SECRET_FILE% pause exit /b 1 ) if not exist "%DEVICE_EXE%" ( echo Hardware agent tester is missing: %DEVICE_EXE% pause exit /b 1 ) set /p SIMULATOR_DEFAULT_DEVICE_SECRET=<"%SECRET_FILE%" set "SIMULATOR_DEFAULT_API_URL=https://121.41.46.238" set "SIMULATOR_DEFAULT_DEVICE_ID=10000000-0000-0000-0000-000000000512" start "" "%DEVICE_EXE%"