diff --git a/any-desk-reset-trial.bat b/any-desk-reset-trial.bat index 0196e16..b93fcb3 100644 --- a/any-desk-reset-trial.bat +++ b/any-desk-reset-trial.bat @@ -71,7 +71,9 @@ pause goto :eof :got_id -echo [*] New ID obtained. Stopping AnyDesk to restore user settings... +for /f "tokens=2 delims==" %%A in ('findstr /C:"ad.anynet.id=" "%PD%\system.conf"') do set "NEWID=%%A" +echo [*] New ID obtained: %NEWID% +echo [*] Stopping AnyDesk to restore user settings... call :stop_any echo [*] Restoring user.conf and thumbnails... @@ -87,7 +89,6 @@ if exist "%temp%\ad_thumbnails" ( echo [*] Starting AnyDesk... call :start_any -for /f "tokens=2 delims==" %%A in ('findstr /C:"ad.anynet.id=" "%PD%\system.conf"') do set "NEWID=%%A" echo. echo ============================================================ echo Script is finished. You can continue using AnyDesk. @@ -151,4 +152,4 @@ goto stop_any :so_kill taskkill /f /im "AnyDesk.exe" >NUL 2>&1 timeout /t 1 /nobreak >NUL -exit /b \ No newline at end of file +exit /b