Posted By

theonlyalterego on 10/20/10


list dir windows filename cmd

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


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

 / Published in: Windows PowerShell


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.