Tuesday, 6 November 2007

Create a sub directory in each directory in the current directory

Run this on Windows Command Prompt to make a sub directory in each sub directory of the current directory called "logs". Change accordingly... :-)

for /f "usebackq" %a in (`dir /b /ad`) DO (
mkdir "%a/logs"
)