diff --git a/service.bat b/service.bat index e4f5a53..8a63e1d 100644 --- a/service.bat +++ b/service.bat @@ -413,6 +413,10 @@ goto menu chcp 437 > nul cls +:: Zapret path +call :PrintGreen "Zapret is installed in: '%~dp0'" +echo: + :: Base Filtering Engine sc query BFE | findstr /I "RUNNING" > nul if !errorlevel!==0 ( @@ -517,6 +521,26 @@ if !errorlevel!==0 ( ) echo: +:: Cyrillic path +powershell -NoProfile -Command "if ('%~dp0' -match '[\u0430-\u044F\u0410-\u042F\u0451\u0401]') { exit 0 } else { exit 1 }" +if !errorlevel!==0 ( + call :PrintYellow "[?] The path where Zapret is installed contains Cyrillic characters" + call :PrintYellow "If bypass doesn't work, try to move Zapret to another directory, for example in C:\zapret" +) else ( + call :PrintGreen "Cyrillic path check passed" +) +echo: + +:: OneDrive +echo %~dp0\ | findstr /I /C:"%OneDrive%\\" > nul +if !errorlevel!==0 ( + call :PrintRed "[X] Zapret is installed in a OneDrive folder" + call :PrintRed "If bypass doesn't work, try to move Zapret to another directory, for example in C:\zapret" +) else ( + call :PrintGreen "OneDrive check passed" +) +echo: + :: WinDivert64.sys file set "BIN_PATH=%~dp0bin\" if not exist "%BIN_PATH%\*.sys" (