21 Users Commented In This Post

Subscribe To This Post Comment Rss Or TrackBack URL
radhey shyam says, January 2nd, 2008   

goody life

uninspired says, February 26th, 2008   

You can also take your directory command (with or without subdirectories, etc) and throw it in a batch file (named “filelist.bat” in this example) and then pop into your registry. (Type “regedit” into the Run… box)

In My Computer\HKEY_CLASSES_ROOT\Directory\shell you can create a new key called “Dump_File_Listing” (or whatever you want…this is what will show up in the right-click context menu). Create yet another new key under “Dump_File_Listing” called “command.” Modify this key to the value of

C:\WINDOWS\filelist.bat “%1″

(This assumes you are putting the command you created into a batch file in the location to which you pointed the above command key.)

-u

uninspired says, February 26th, 2008   

Rats. I forgot to mention, all of this enables you to right-click any folder you want in Windows Explorer and select “Dump File Listing” and it will automatically run the directory command you specified in the batch file. This way you don’t have to go to command prompt and type every time you want to do this. Just right click your folder and select Dump File Listing.

-C

Anand says, July 20th, 2008   

how to create a new file from the command prompt

plooger says, September 1st, 2008   

Thanks for the info. I’ve been *basically* doing this, but without the beneficial optional arguments.

Meth says, January 24th, 2009   

If you want to change to another directory than C:\ you got to type: “cd d:” which will make you cd into disc D.

putri says, March 18th, 2009   

how about for more detail listing? like if i wanted to get the date creation and file size too..?

Frippexia says, April 15th, 2009   

emm… interesting :)

bored says, July 10th, 2009   

to include date creatin and file size, don’t include the /b

dir /on /s >list.txt

hana says, July 30th, 2009   

how we want to list down the permission (R/RW) of the list?
Thanks :)

sarin says, August 25th, 2009   

i saw one command to take complete system filenames, directories listing, does any one know that,it list all the folders,files in a system

How I Deleted My Whole MP3 Collection But Was Able to Recover Most of It | krynsky.com says, September 22nd, 2009   

[…] to do a directory listing of the source to try and root them out. I found this great tip on how to create a text file of a directory using the command prompt. This worked perfectly. I opened the file in a text editor and then began searching the file for […]

Tommy says, January 18th, 2010   

I have found an easier way in another blog to do the same. You can use the free and portable tool Filelist Creator. With this tool you can easily create lists of files and directorys without using command lines, so you can create your list within seconds:

http://www.sttmedia.com/filelistcreator

@hana: The permission can also be added to your list (you can choose which columns you want to use for your list)

Anahid says, July 24th, 2010   

Thanks a million - this was terrific information. I really appreciate it - had to extract and compare a number of server directories and you made it simple!

ICHO says, September 17th, 2010   

from the command prompt type dir /?
this will give you a full list of possible switches.

stuart says, November 22nd, 2010   

I have a folder full of images and I want the list to show the name / size / type / height / width

Can a command line produce a .txt file with all this info ?

Greatly appreciated.

Stu

Billy says, December 2nd, 2010   

Thanks a mil

walid says, December 6th, 2010   

How can i get more free directory from your sites?

Bosphoran says, January 4th, 2011   

how can we list a specific file type..

scott says, May 5th, 2011   

@Bosphoran
This command will create a list of only files of type JPG:

dir *.jpg /on /b >list.txt

mark says, May 15th, 2011   

I need how to build a web directory for listing of the url of the members

Leave Your Comments Below
Hello, please leave your thought below

Please Note: Comments may need to approved by admin. so there's no need to resubmit your comments.