Test-Path variable:\myVariableName
You can also do the following :
if ($myVariableName) {$true} else {$false}
But this will not work if you have used Set-StrictMode -Version 2.0
Test-Path variable:\myVariableName
You can also do the following :
if ($myVariableName) {$true} else {$false}
But this will not work if you have used Set-StrictMode -Version 2.0
Frenquently asked questions about everyday real problems in PowerShell
No comments:
Post a Comment