From 9ae1d25d0f9f1ba35d743031f48fb503b216ad73 Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Fri, 23 Feb 2024 16:56:20 +0100 Subject: [PATCH] delete mail password always ... --- 06_Copy2Media.cmd | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/06_Copy2Media.cmd b/06_Copy2Media.cmd index 16e8d9d..bce5f92 100644 --- a/06_Copy2Media.cmd +++ b/06_Copy2Media.cmd @@ -5,6 +5,7 @@ set BOOTFILE=boot.wim set IMAGEFILE=install.wim set SCRIPT_SETTINGS=scripts\settings.cmd set CUSTOM_SETTINGS=custom\settings.cmd +set SNAPCONTROL_INI=custom\snapcontrol.ini IF %1.==. GOTO USAGE @@ -99,6 +100,12 @@ for %%A in ( ) ) +echo. +echo removing mail password from snapcontrol.ini +if EXIST %DRIVE%\tools\%SNAPCONTROL_INI% ( + tools\searchreplace %DRIVE%\tools\%SNAPCONTROL_INI% "^.*MAILPASS.*=.*" "MailPass = DELETED" +) + echo. echo deleting ftpsettings.cmd ... del /F /Q %DRIVE%\tools\custom\ftpsettings.cmd