talatham
6/12/2013 - 2:26 PM

Create a text file in each directory and sub-directory of the current directory with the same name as this batch script.

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" 
)