I just don\'t like the syntax of:
if (Test-Path $path) { ... }
and
if (-not (Test-Path $path)) { ... } if (!(Test-Path $pa
This is my powershell newbie way of doing this
if ((Test-Path ".\Desktop\checkfile.txt") -ne "True") { Write-Host "Damn it" } else { Write-Host "Yay" }