Sorry I later realized that the used platform was not made obvious by the name of the forum : it is Powershell.
My script looks like this :
$source = Get-ChildItem "\Uc00006\d\Projets Visual Studio\Web"
foreach($d in $source)
{
$N = $d.Name;
$path = "D:\Projects Visual Studio\web\" + $N;
if((Test-Path $path)-eq $true){
$N + " OK";
}
else{
"not found : " + $N;
}
}
This version does not work (to Copy-Item), it was OK when I used SUBST to initialize the default path.