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


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.