$workdir = "c:\parse"
$inputdir = $workdir + "\input"
# Get file listing
if (-not (test-path $inputdir)) {
"Folder: $inputdir"
"Does not exist!"
exit
}
$files = get-childitem $inputdir -name
if (-not ($files)) {
"Folder: $inputdir"
"Contains no files!"
exit
}
No comments:
Post a Comment