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


/ Published in: Windows PowerShell
Save to your folder(s)

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 )


Copy this code and paste it in your HTML
  1. dir *.* /b >>fileListing.txt

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.