Ultima modifica:
In powershell potrebbe essere qualcosa del genere:
Esempio di output:
è quello che cercavi?
Codice:
$pcs = @("192.168.1.2", "192.168.1.3")
$path = "C$\ciao.txt"
foreach ($pc in $pcs)
{
$exists = [System.IO.File]::Exists("\\" + $pc + "\" + $path)
$log = "On " + $pc + " exists: " + $exists
Write-Output $log
}
Esempio di output:
Codice:
On 192.168.1.2 exists: True
On 192.168.1.3 exists: False
è quello che cercavi?