Skip to content

Instantly share code, notes, and snippets.

@talatham
Created June 12, 2013 14:26
Show Gist options
  • Save talatham/5765745 to your computer and use it in GitHub Desktop.
Save talatham/5765745 to your computer and use it in GitHub Desktop.
Create a text file in each directory and sub-directory of the current directory with the same name as this batch script.
@ECHO OFF
for /f "tokens=*" %%G IN ('dir /ad /b /s') DO (
echo. > "%%G\%~n0.txt"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment