How to list all files in directory/subdirectory without path name CMD?
Very late but may be useful to someone.I guess he is asking for this one line command
forfiles /m *.asf /s >d:\Hitendra.Txt
here as you all know after this (>)
I'm saving result in D drive of my computer witha file name Hitendra.Txt
try this on the cmd shell prompt:
for /r %a in (*.asf) do @echo %~tza %~nxa
only the name:
for /r %a in (*.asf) do @echo %~nxa