Articles

Solved list files in excel sheet or list files

February 8, 2013 at 04:41:20
Specs: Windows 7

I have sql files in folder say c:\DB\f1.sql, f2.sql, f3.sql and want all file names like
f1.sql
f2.sql
f3.sql
as o/p in list.txt file using batch script

See More: list files in excel sheet or list files

Report •


#1
February 8, 2013 at 05:34:22
✔ Best Answer

cd DB
for %%i in (*.sql) do @echo.%%~nxi >> "list.txt"

Report •

#2
February 8, 2013 at 10:21:32

>list.txt dir /b c:\db\*.sql

Tony


Report •

Related Solutions


Ask Question