Command to import the file names in a directory into a text file:
DIR "C:\Users\ravi\Desktop\test\ *.csv" /b > c:\dirlist.txt
Command to import the file names in a directory into a text file without extensions:
cd C:\Users\ravi\Desktop\test
for %%i in (*.csv) do @echo %%~ni >> LIST.txt
No comments:
Post a Comment