TechKnow

Author Topic: [BAT] List directories of a directory and perform action  (Read 1676 times)

0 Members and 1 Guest are viewing this topic.

Offline HcH

  • TechKnow Owner, Ethical Hacker
  • Administrator
  • Uber Member
  • *****
  • Posts: 9936
  • Karma: +2284/-111
[BAT] List directories of a directory and perform action
« on: November 22, 2011, 10:49:50 PM »

This lists directories of a directory and calls a batch file which is able to perform an action on each folder. Might come handy in many, many situations!
for /F %%l in ('dir /b /ad') do call TODO.bat %%l%