if (test-path){ (Perform some actions here) } else { Write-Host "FILE NOT FOUND!" exit }
Trying to stop a script if a file is missing (or any other conditions)...
The above does not work.
Any suggestions?
if (test-path){ (Perform some actions here) } else { Write-Host "FILE NOT FOUND!" exit }
Trying to stop a script if a file is missing (or any other conditions)...
The above does not work.
Any suggestions?