Friday, May 1, 2020

Powershell mention a simple if else statement



$x = "$InstallationFolder/file.dat"

if($x -eq $x) {
   Write-Host "file.dat file exists"
}else {
   Write-Host "file.dat does not file exists"
}

No comments:

Post a Comment