Posted By

theonlyalterego on 10/20/10


Tagged

list dir windows filename cmd


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Tyster


Windows DIR - List only the filenames of all files in a directory


 / Published in: Windows PowerShell
 

URL: http://tgaw.wordpress.com/2007/06/20/list-of-filenames-from-a-directory-in-text-format/

I found this today and don't want too lose it. In windows the following command will create a text file named fileListing.txt which will contain a list of all the files in the current directory ( including fileListing.txt )

  1. dir *.* /b >>fileListing.txt

Report this snippet  

You need to login to post a comment.