Searching empty and non-empty directories using Forfiles command
Can someone help me find out what's wrong with the command below I have been struggling with it for past couple days but could not figure it out? I am basically trying to find directories that are empty or not in C:\TEST folder and just print it out on the screen. There are few empty directories under C:\TEST and I was expecting the command below would print empty for them and not-empty for that are not. For now it's printing not-empty for all... FORFILES /P C:\TEST /S /C "cmd /c IF EXIST @PATH\*.* (echo @PATH is not-empty) ELSE (echo @PATH is empty)" Any help much appreciated? Thanks Hiren1 person needs an answerI do too
November 9th, 2009 7:01pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics