Go Around The Tech Corner…

Tech Tip 7: How to get a list of file names from a folder onto a textfile..

Posted on: February 9, 2009


Say you have a folder with over 100 files in it and you want to extract the file names. Imagine having to sit there to start typing it all up! That would take such a long time and be so monotonous! There’s a simple way to get this list. Just open the command prompt, navigate to the folder and type in the following:

First of all, to open the command prompt, click on Start -> Run. Then type in cmd and hit the Enter key.

Now navigate to the folder of your choice, e.g. C:\My Documents\

Once you’re here, type in: dir *.* > my_files.txt

my_files .txt is the text file in which the list of file names from that folder will be displayed, with some extra information too. Try it and see if it works!

Feel free to comment on any other ways you know to achieve this!

– Millie

Advertisements

2 Responses to "Tech Tip 7: How to get a list of file names from a folder onto a textfile.."

that was a really cool trick..

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Me – The author of this blog!


This is my tech blog. I got another blog, full of jokes that will crack u up! http://humoraddict.blogspot.com

Follow milliepatel84 on Twitter

Tweet Tweet…!!!!

Blog Stats

  • 44,031 hits

Top Clicks

  • None

Flickr Photos

%d bloggers like this: