Computer Tips

Follow Tips4pc on TwitterTips4pc RssBecome a Fan

 

 

 

 

 Laptop Computer    Faster Internet    Computer Games    Spyware Removal    Online Education     Computer Software    Computer Help         

 

 

Top Selling Ebook!

 

Recommended Links

 

 

 Tips4pc Youtube Videos

 Free Wordpress Templates

 PC Tips

 Windows Vista Tips

 Photo Scanner

 Windows Talk

 Computer Repair

 Windows Reinstall

 Download Driver

 Desktop PC Help

 Windows Registry Tips

 Favourite links

 

 

Computer Basics videos

 

How to cut, copy and paste text or pictures

How to enable your Quick Launch Toolbar

How to organize your my documents files and folders

How to save my free desktop wallpapers to your computer

How to take a screenshot in Windows Vista?

 

Computer Tips Newsletter

 

Tips4pc newsletter

Latest newsletter

 

 

How to create a list of filenames from a directory and send it to notepad to save or print

 

Free Computer Help By Mitz

 

Have you ever wanted to see a list of files or folders that are contained in a particular directory. I have. One day I decided that it would be great to have a list of the files from my music folder. But then I discovered that Windows does not have any tools to do this. So here is a fantastic, sneaky batch file that you can create to do the job for you. If you are not familiar with Batch files, you will be soon. Once you have made one, and see that it is successful, and working, they can become very addictive.

 

Please check out some very simple Batch Files before trying this one.

 

How to create a list of filenames from a directory and send it to notepad to save or print

  1. Paste this text below into notepad

 

@echo Dumping directory listing to c:\dirListing.txt
@echo        (This may take some time for large directory trees.)
@REM the /A switch lists all hidden and system files as well.
@REM the /S switch lists all subdirectories and their contents.
@dir %1 /A /S > c:\dirListing.txt
@echo Opening c:\dirListing.txt in Notepad (Close notepad to delete file)
@notepad c:\dirListing.txt
@echo Deleting c:\dirListing.txt
@del c:\dirListing.txt
@pause

 
  1. Name the file as Listdir.bat

  2. Save it in C:\Documents and Settings\Your username\SendTo. (see note)

  3. Now if you wanted to list the files in My music, right click on the folder

  4. Choose send to from the menu, then choose your file Listdir.bat

  5. Notepad will open with all the files in My music folder listed

  6. Now you can save or print this file.

To get this script to work on Windows Vista see this post on the forum A batch file to make a directory list for Windows Vista-

 

Notes:

  • The send to folder may be hidden by Windows. Here's how to show hidden files.

  • Windows has no other way available to make a list of filenames that are in a directory or folder on your computer.

  • To print your list simply select print form the file menu at the top of notepad.

Browse Tips4pc for more Free Computer Help

 

About the Author

Mitz Pantic wrote this article and others for http://www.tips4pc.com  Browse Tips4pc.com for more articles that are written in an easy to understand interface and FREE computer help.

Page copy protected against web site content infringement by Copyscape        Download Software

Main Menu

 

Home

About Us

Link to us

Contact Us

Favourite links

Tips4pc Newsletter

Tips4pc Youtube Channel

Freeware

PDF Articles to save

Privacy Policy

Sitemap

Forum

Shout me a coffee!!

 

Computer Tips Categories

 

Computer Basics

Computer Terms

Computer Troubleshooting

Computer Maintenance

Computer Upgrade

Computer Tip Archive

Digital Camera Tips

Networking Tips

Ebay Tips

Format Windows XP

File and Disk management

Windows Vista Tips 

Windows XP Tips

Webpage Help

Outlook Express Email

Youtube Video Tips

Software Tips

Printer Tips

Videos

Word 2007 Tips

 

Friends

 

PC Tips

Windows Vista Tips

Free Wordpress Templates

Windows Talk

Computer Repair

Windows Reinstall

Download Driver

Desktop PC Help

Repair Windows

Buy Computers Ohio

Photo Scanner

AskRitesh

Lenovo Coupons

Tips4pc RssFollow Tips4pc on Twitter

All rights reserved. Copyright © 2007 Tips4PC.com
Free Computer Help
Revised: 20-Nov-2009.    RSS Feed   Video Rss Feed

Share This Website with a friend            Make Tips4PC your homepage