zapret2-youtube-discord/utils/zapret2-run.bat
loop-uh 7d5aec1bc7
All checks were successful
Проверка восстановленного репозитория / validate (push) Successful in 4s
Выпуск Zapret2 для Windows / release (push) Successful in 7s
Восстановить полный Zapret2 и перенести выпуск в Forgejo
2026-08-07 17:10:02 +03:00

23 lines
865 B
Batchfile
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
:: Запуск winws2 с активным пресетом
:: Этот файл вызывается для ручного запуска и отладки
:: Для автозапуска (Task Scheduler) используется zapret2-start.vbs
cd /d "%~dp0.."
set "SYS32=%SystemRoot%\System32"
:: Очистка WinDivert перед запуском (предотвращает ошибки сертификатов)
for %%s in (WinDivert WinDivert14 Monkey Monkey14) do (
%SYS32%\sc.exe query "%%s" >nul 2>&1 && (
%SYS32%\net.exe stop "%%s" >nul 2>&1
%SYS32%\sc.exe delete "%%s" >nul 2>&1
)
)
:: Включаем TCP timestamps
%SYS32%\netsh.exe interface tcp set global timestamps=enabled >nul 2>&1
:: Пауза после очистки
%SYS32%\timeout.exe /t 1 /nobreak >nul
exe\winws2.exe @utils\preset-active.txt