net use Z:
if %errorlevel% EQU 0 net use Z: /delete
net use z: \\ipdupartage\Partage /user:UTILISATEUR MDP /persistent:no <<<< A modifier
ping 127.0.0.1 -n 6 > nul
rmdir C:\VM
mkdir C:\VM
xcopy /E /y "Z:\VMLachaume" "C:\VM\"
net use z: /delete