RosettaCodeData/Task/Empty-directory/PowerShell/empty-directory.psh

7 lines
106 B
Text
Raw Permalink Normal View History

2015-11-18 06:14:39 +00:00
$path = "C:\Users"
if((Dir $path).Count -eq 0) {
"$path is empty"
} else {
"$path is not empty"
}