DIR Command in Windows Command Line -
how use dir command list directories, including subdirectories, contain no files? i've researched @ length , can find how delete specified directories, not list them. can help? there better way other dir command?
you modify powerscript answer on linked question display instead of delete this:
get-childitem -recurse . | { $_.psiscontainer -and @( $_ | get-childitem ).count -eq 0 } | select-object -property fullname
Comments
Post a Comment