1.

Solve : batch file to check folders if populated?

Answer»

I've DONE very LITTLE with batch files, but I need to check several thousand directories to see whether or not they're populated. My FINAL outcome will be a list of directories that are empty. The folder structure looks like this:
M:\Drafting\DWGS\70-000\70-038\Images

I need to check every "Images" folder below the DWGS folder.

I'm using XP PRO.

Thanks for any help.I think this should work
Code: [Select]PUSHD M:\Drafting\DWGS\
for /f "tokens=*" %%I in ('dir /ad /b /s *images') do (
if EXIST "%%I\nul" if not exist "%%I\*" echo %%I is empty
)



Discussion

No Comment Found