Update any-desk-reset-trial.bat
This commit is contained in:
@@ -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
|
||||
exit /b
|
||||
|
||||
Reference in New Issue
Block a user