INSTALLATION DOCUMENTS BY RAVI

Saturday, April 15, 2017

Command to Import the File Names in a Directory into a text file on Windows

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

Loading xml file data to oracle table using python

Sample xml file (test.xml): <?xml version="1.0"?> <data>     <customer name="Ravi" >     ...