Tuesday, July 13, 2010

If you want to list all the files in a directory in Excel or in notepad, then…

Assume you want to find for dir test in c:

In the command prompt window, change the current path to the required folder path

Type:

Dir /b > file.csv or Dir /b > file.txt

Or

C:\Test /b > c:\files.csv

No comments: