Geeky stuff

How to Create a List of Files and Folders in a Directory

We have several files and folders in our computers. Sometimes we may require a list of files and folders in a particular directory. Looking for each file and folder and listing them isn’t easy. But there’s an easy way to generate or create a list of files and folders in a location. Here’s how you do it:

Go to Start> Accessories> Notepad

Now type the following:

dir /s > output.txt

Save the file as “genfile.bat”, close Notepad.

Now to generate a files and folder list of a specific location, simply paste genfile.bat into it and double click on it. It will create a new text file in same place with the name “output” which will contain the list of all the files and folders present in the location. It not only shows the names of files and folders but it also shows the date on which they were created, their file size, etc.



STAY IN TOUCH WITH UPDATES | SUBSCRIBE VIA RSS or Email |

Discussion

2 comments for “How to Create a List of Files and Folders in a Directory”

  1. MyAvatars 0.2

    Neat!

    Posted by Luke | July 9, 2008, 11:36 am
  2. MyAvatars 0.2

    I’ve been trying to figure out a way to do this for so long I was beginning to think it would be quicker to just type up a list myself. Thanks for saving me so much time!

    Posted by Jeff | August 3, 2008, 8:16 pm

Post a comment

web analytics