Tuesday, October 13, 2009

How to print directory contents in Windows without applications

It’s one of those simple tasks that suddenly come upon us and we have no idea how to go about it. I had a whole fat folder filled with ebooks and someone casually asked me to send over a list. A list… that sounds really simple.

Did I forget to mention that the ebook folder was really filled with a lot of titles? It must have had almost 120 ebooks. I almost started manually typing the names when I figured that there must be a less laborious way to print out the directory contents.

Printing directory contents seems so mundane an activity that we forget it has very useful applications in our day to day usage. Especially in a professional setting where you might be told to send over a list of so and so files about such and such subject. In a jiffy. If it’s a small bunch of files then manually writing it down is not a problem. But what if it numbers a few dozen?

Instead of searching for a poor flunky to lend a hand, you can just tap a few keys and get it for yourself. All in double quick time with a few methods.

So let’s work on not one but five ways to print folder and directory contents and get that file list.

Command DOS

This is one command line that’s easy to remember and easy to do.

  1. Start the command prompt from Run – cmd. Type cd and the directory path of the folder you want to list.
  2. Type dir > print.txt
  3. Press Enter and exit from the DOS window.
  4. Open the folder you wanted the listed file content for and you should see a print.txt file. This is a simple Notepad file that can be copied or printed easily.

Setting A Contextual Menu

A print directory feature can be added to the right-click context menu for a folder. This sends the folder content list directly to the printer. For Windows XP follow these steps:

  1. Create a batch file in Notepad by pasting the following text

    @echo off
    dir %1 /-p /o:gn > “%temp%\Listing”
    start /w notepad /p “%temp%\Listing”
    del “%temp%\Listing”
    exit

  2. Save the file as %windir%\Printdir.bat
  3. Open Control Panel – Folder Options. Click on the File Types tab. Under the registered file types select the entry for Folder. Click on Advanced.print directory contents
  4. In the Edit File Type box, click on New. In the Action box, type Print Directory Listing. In the Application used to perform action box, type printdir.bat.2_Edit-File-Type
  5. Click on OK and close all boxes.
  6. Right-click on any folder and use the Print Directory Listing command to send the list to the printer.print all files inside directory

The above instructions and those for Windows Vista can also be found on the Microsoft Help and Support page.

Bookmark and Share

5 comments:

thanks a lot oso that was wonderful
no!sorry
it 's veeeeeeeeeeeery wonderful
but can you explain how we get the control panel?
thank's

^_^

Control panel (En) = panneau de configuration (Fr)

;)

Now i got that easy ;)
Thanks OSO

ahla oso c amir

:::] Got It Easy !: How To Print Directory Contents In Windows Without Applications >>>>> Download Now

>>>>> Download Full

:::] Got It Easy !: How To Print Directory Contents In Windows Without Applications >>>>> Download LINK

>>>>> Download Now

:::] Got It Easy !: How To Print Directory Contents In Windows Without Applications >>>>> Download Full

>>>>> Download LINK ev

Post a Comment