by Allen Wyatt
(last updated December 7, 2015)
I've got a directory that contains a ton of graphics files. I was preparing a report that, in one part, needed to list all of the filenames for those files. I didn't want to type all the filenames in from scratch, so I relied on a tried-and-true trick from the DOS days in order to get the filenames into a text file.
dir /b > myfiles.txt
That's it. You should note a new file (myfiles.txt) in the directory, and it contains all of the names of the files in the directory. (If you don't see the myfiles.txt at first, press F5 to refresh what is shown in the Explorer window.) In my case, all I did was to copy the filenames and insert them into the report I was preparing—much easier than typing everything!
This tip (12707) applies to Windows 7, 8, and 10.
Being able to restore from a backup is just as important as making the backup in the first place. This tip tells you how to ...Discover More
Want to make the data stored on your system more secure? Think about enabling the built-in encryption capabilities of Windows ...Discover More
There may be times when you want to reset the search index and rebuild it from scratch. This tip tells you how.Discover More
FREE SERVICE: Get tips like this every week in WindowsTips, a free productivity newsletter. Enter your address and click "Subscribe."