This is purely for my personal note, cmdlet "test-path" is the keyword:
if (Test-Path "file_lccation")
{
write-host "the file is there"
}
else
{
Write-Host "the file is missing"
}
Showing posts with label file exist. Show all posts
Showing posts with label file exist. Show all posts
Friday, August 7, 2009
Subscribe to:
Posts (Atom)