From d58956a3839bb47cabcdbde4bc22c47bb0737e7e Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Tue, 2 Jul 2024 10:08:10 +0200 Subject: [PATCH] . --- tools/maphome.cmd | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 tools/maphome.cmd diff --git a/tools/maphome.cmd b/tools/maphome.cmd deleted file mode 100644 index a052dc1..0000000 --- a/tools/maphome.cmd +++ /dev/null @@ -1,28 +0,0 @@ -@echo off -set PDC=192.168.6.1 -set PDCNAME=GATEKEEPER - -set BDC=192.168.89.1 -set BDCNAME=KEYMASTER - -set mydrive=H: -net use %mydrive% /DELETE - -echo ####### %0 ####### - -for /f "tokens=2,* delims=:" %%A in ('ipconfig ^| find "Gateway"') do set GATEWAY=%%A -set GATEWAY=%GATEWAY:~1% -echo GATEWAY=%GATEWAY% - -if /I %GATEWAY% == %PDC% ( - echo using %PDCNAME% as HOMESERVER ... - net use %mydrive% \\%PDCNAME%\%USERNAME% -) - -if /I %GATEWAY% == %BDC% ( - echo using %BDCNAME% as HOMESERVER ... - net use %mydrive% \\%BDCNAME%\%USERNAME% -) - -echo ####### %0 ####### -