Things I'd forget if I didn't post them here.
Wednesday, December 19, 2018
Count directories with Windows command line
REM Foo contains 2 files and 3 folders
REM Filter out files and '.' and '..' folders
for /f %i in ('dir /b /ad-s-h ^| find /i /v /c ""') do @echo %i
Post a Comment
Note: Only a member of this blog may post a comment.
Post Comments (Atom)