1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
| @echo off
cls
echo -
echo -
echo -
echo - Test Reseau
echo -
@echo off
setlocal enabledelayedexpansion
set /a "IpCnt=0"
for /f "delims=" %%a in ('ipconfig ^| find /i "192.9"') do (
for /f "tokens=1* delims=:" %%b in ("%%a") do (
set "Ip!IpCnt!=%%c"
set /a "IpCnt+=1"
)
)
if not defined Ip0 goto nok
set /a "IpCnt-=1"
for /l %%a in (0 1 !IpCnt!) do echo !Ip%%a!
if defined Ip0 goto ok
:nok
color 0C
echo -
echo -
echo -
echo - Sauvegarde impossible : Vous n'etes pas sur votre site de reference
echo -
echo -
echo -
ping -n 3 127.0.0.1 >nul
goto EOF
:ok
color CF
echo -
echo -
echo - Synchronisation des Documents personnels du portable sur le serveur.
echo -
echo -
echo - Veuillez patienter
echo -
echo -
c:
cd\bat
echo %source%
echo %destination%
Robocopy.exe "C:\Users\%username%\Documents" "u:\mes_documents" "*.*" /MIR /E /R:2 /W:10 /LOG+:backup.txt
cls
echo -
echo.
ping 0.0.0.0 -n 5 > NUL
echo.
color 2F
echo -
echo -
echo - Synchronisation terminee.
echo -
echo -
echo -
echo -
echo -
echo -
ping -n 3 127.0.0.1 >nul
GOTO EOF
:EOF |
Partager