The Daily learning's!
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment