Articles

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

Reply ↓  Report •


#1
February 8, 2013 at 05:34:22

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

Reply ↓  Report •

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

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

Tony


Reply ↓  Report •

Related Solutions


Ask Question