Here you go create a file called getDirs.bat and add this content
Code: 
@ECHO OFF
for /F "delims=" %%a in ('dir /ad /b /s') do (
   @echo %%~nxa > %%a\test.nfo
)
Put it in the folder with all the subfolders and run it. You can make test.nfo to anything you want..
Lock Down Reviewed by Lock Down on . Auto create txt file in each folder I have a directory with thousands of subfolders in them. I want to create a text file in each folder containing the folder name in it. How can I do this in windows? Rating: 5