Bat file required to list all files and associated file path

January 18, 2012 at 07:23:13
Specs: Windows XP
I need a bat file to list all files in a dir with their full path. This needs to list all files and folders in the directory and go down multiple levels.

Is this possible?


See More: Bat file required to list all files and associated file path

Report •

#1
January 18, 2012 at 09:40:57
for /R "Your_Dir" %%j in (.) do @for %%k in ("%%~j\*") do @echo.%%~fk

If you want to type the command directly at prompt replace %% with %.

Report •

#2
January 18, 2012 at 13:02:12
Try dir /b /s > files.lst

Report •

#3
January 20, 2012 at 15:23:19
Add the "/a" switch to also list hidden and system files.

dir /b /s /a


Report •
Related Solutions


Ask Question