Run Command ON Folder

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Posts: 1
Joined: 15 Jul 2019 07:17

Run Command ON Folder

#1 Post by koolkat67 » 15 Jul 2019 07:26

I have an executable called printfroll.exe that runs on subfolders but not within them and kicks out a report
So if I'm in folder /ABC with Subfolders DEF, GHI and JKL, I would place this exe in /ABC with a command printfroll DEF > DEF.txt, it looks within each subfolder and kicks out a report.
How do I make a batch to run this in a loop and execute on each subfolder?

Post Reply