open_in_new
content_copy
$fileToCheck = "C:\tmp\test.txt" if (Test-Path $fileToCheck -PathType leaf) { #do some stuff }