Wednesday, July 30, 2014

Creating a file that contains the list of all the files in a folder

The following command in Windows will help in creating a list of all the files in a folder:

dir /b > C:\TEMP\all.sql

The above command when executed from a folder will spool the file names without any other details such as file size, modified time etc. It is like pipe in UNIX.