From 09b9678bacec64af0d80d9dac448480cb1cc81d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D0=B0=D1=85=D0=B8=D1=80=D0=B5=D0=B2?= Date: Wed, 20 Dec 2023 14:36:32 +0300 Subject: [PATCH] JIRA-1234 test(test): test --- documents/nostalgie.bat | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 documents/nostalgie.bat diff --git a/documents/nostalgie.bat b/documents/nostalgie.bat deleted file mode 100644 index cfe82c1..0000000 --- a/documents/nostalgie.bat +++ /dev/null @@ -1,17 +0,0 @@ -@echo off - -for /f "skip=1 usebackq" %%g in (`wmic nicconfig where "description like '%%Check Point%%' and DHCPServer is not null" get DHCPServer ^| findstr /r /v "^$"`) do ( - if "%%g"=="" ( - echo Cannot find correct CheckPointGateway - goto:eof - ) else ( - SET CheckPointGateway=%%g - ) -) -echo CheckPointGateway=%CheckPointGateway% -for /f "tokens=1,2,3 usebackq" %%g in (`route PRINT ^| findstr "%CheckPointGateway%"`) do ( - echo %%g | >nul findstr /r /c:"10\..*" || echo %%g | >nul findstr /r /c:"192\.168\..*" || echo %%g | >nul findstr /r /c:"172\.[0-2][0-9]\..*" || echo %%g | >nul findstr /r /c:"172\.3[0-1]\..*" || ( - route DELETE %%g mask %%h %%i >nul - ) - echo | set /p="." -)