From 66dfa8b4e426bd7d6524d9fdcebb9e14a5dc80d4 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 26 Jun 2012 12:11:24 +0200 Subject: [PATCH] =?UTF-8?q?Corrige=20le=20test=20du=20r=C3=A9pertoire=20me?= =?UTF-8?q?s=20documents?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shares/tools/files/scripts/session/010signature.bat | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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 e9fe3fc..2e3c981 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 @@ -1,5 +1,11 @@ -set DOC=Mes Documents -if exist \\%IPASSERELLE_IP%\tools\signatures\%USERNAME% ( - if exist %USERPROFILE%\Documents set DOC=Documents +if exist "\\%IPASSERELLE_IP%\tools\signatures\%USERNAME%" ( + REM Windows 200 / XP / 2003 + if not exist "%USERPROFILE%\Documents" ( + set DOC=Mes Documents + ) + REM Windows Vista / 7 + if exist "%USERPROFILE%\Documents" ( + set DOC=Documents + ) xcopy /E /I /Y \\%IPASSERELLE_IP%\tools\signatures\%USERNAME% "%USERPROFILE%\%DOC%\signature" )