Just use the other one I made and add the dir like this
Code: 
@setlocal EnableDelayedExpansion
@echo off
chcp 65001 > nul
for /F "delims=" %%a in ('dir /ad /b /s') do ( @echo %%~nxa > %%a\test.nfo
dir /b %%a\*.* >> %%a\test.nfo  )
Lock Down Reviewed by Lock Down on . List files in all subfolders I have a directory with a bunch of subfolders (contains special/chinese characters) I want to create a txt file in each subfolder that will list all the files in that subfolder. I am running Windows Server 2003. How can I do this with CMD? or any other tools Rating: 5