hi
i need to get the names of all the files in a folder and all the files inside subfolders.
i want just the name of the files and not the path and i dont want it to list the sub folders just the files inside.
any help apreciated.
thanks
searching with dir
Moderator: DosItHelp
-
- Expert
- Posts: 391
- Joined: 19 Mar 2009 08:47
- Location: Iowa
Code: Select all
@echo off
set "rootdir=c:\your root folder"
cd /d "%rootdir%"
for /r %%a in (*) do dir /b /a-d "%%~a"