From 36812a326e7a9a49b8d50ae4deb8bd82ac0a04e0 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 21 Apr 2015 10:19:01 +0200 Subject: [PATCH] Create a default email_modif.txt for outlook if it doesn't already exist --- .../e-smith/files/shares/tools/files/scripts/session/010signature.bat | 3 +++ 1 file changed, 3 insertions(+) diff --git a/root/home/e-smith/files/shares/tools/files/scripts/session/010signature.bat b/root/home/e-smith/files/shares/tools/files/scripts/session/010signature.bat index 7433916..5186a28 100644 --- a/root/home/e-smith/files/shares/tools/files/scripts/session/010signature.bat +++ b/root/home/e-smith/files/shares/tools/files/scripts/session/010signature.bat @@ -61,6 +61,9 @@ if "%OLSIG%" EQU "yes" ( if exist "%APPDATA%\Microsoft\Signatures\email_modif.html" ( del /Q /F "%APPDATA%\Microsoft\Signatures\email_modif.htm" rename "%APPDATA%\Microsoft\Signatures\email_modif.html" "email_modif.htm" + if not exist "%APPDATA%\Microsoft\Signatures\email_modif.txt" ( + copy /Y "%APPDATA%\Microsoft\Signatures\email.txt" "%APPDATA%\Microsoft\Signatures\email_modif.txt" + ) ) if exist "%APPDATA%\Microsoft\Signatures\email_modif.txt" ( echo -- > "%APPDATA%\Microsoft\Signatures\email_modif.rtf"