Corrige le test du répertoire mes documents

This commit is contained in:
Daniel Berteaud 2012-06-26 12:11:24 +02:00
parent 14372fa6e0
commit 66dfa8b4e4

View File

@ -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"
)