Quick Computer Question

Say I have a folder with 100+ files in it.

By the way, this is in Windows 2000.

Is it possible to copy all the file names into a text file without having to do it manually?

E.G. I want a text file that looks like this:

file001.jpg
file002.avi
file003.mov
file004.txt

file122.jpg
file123.doc

Thanks.

Yes. Go to the command line, cd to the directory, and type dir >list.txt. This will dump the output of the dir command to a text file. Type dir /? to see all the switches you can use.

start->run (press enter)
cmd (enter)

go to the directory where the files are stored (cd pictures)

dir >> files.txt

files.txt will list the files (with some more stuff included)

arse. beaten to the post. :mad:

To get the filename and extension only, use:

DIR /B > files.txt

BTW, the >> will append to the end of an existing file, where the > will always start fresh, ie overwrite the existing file.

You can also download a program called rjhExtensions. It will give you the ability to print your current directory straight from Windows Explorer. It also will give you some other enhancements such as a File Renamer, take you straight to a DOS prompt in the dir you are at in Win Explorer, and it also has a secure file shredder.

I use this utility daily and it makes things so much easier for me.

In case anyone wants to know how to do it on a Mac, BBEdit or BBEdit Lite will do it nicely. Edit menu --> Insert --> Folder Listing.

Sweet! I was gonna ask that, since C&P messes up the order.

Or open up a Terminal, then type

$ ls /the/path/where/my/folder/is > ~/listing.txt

That will put “listing.txt” in your home directory, with the names of all the files in the folder. Nothing against BBEdit, which roxxors, but a free solution never hurts. :wink:

I saw this and got excited because I thought I could give a link to a java program I had to write a week ago that did this. Oh well, the command line thing sounds a lot easier.