Article ID: 272623 - Last Review: January 29, 2007 - Revision: 2.5

How to add the print directory feature to Windows Explorer

This article was previously published under Q272623
Expand all | Collapse all

SUMMARY

This article explains how to add the print directory feature, and how to enable printing of the directory listing from within Windows Explorer.

MORE INFORMATION

To add the print directory feature to Windows Explorer, follow these steps:
  1. Open Notepad, and then copy and paste the following text into Notepad:
       @echo off 
       dir %1 /-p /o:gn > "%temp%\Listing" 
       start /w notepad /p "%temp%\Listing" 
       del "%temp%\Listing" 
       exit
    					
  2. Save the file as Prin.bat in the Windows directory, and then close Notepad.
  3. Start Windows Explorer, click Tools, and then click Folder Options.
  4. Click the File Types tab, and then click File Folder.
  5. Click Edit, and then click New.
  6. In the Action box, type Print Directory Listing.
  7. In Application used to perform action, click Prin.bat, and then click OK.
  8. Click OK, click Apply, and then click OK.
  9. Open Windows Explorer, right-click the folder that you would like to print a directory listing of, and then click Print Directory Listing.

APPLIES TO
  • Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
  • Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
  • Microsoft Windows Server 2003, Standard Edition (32-bit x86)
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Datacenter Server
  • Microsoft Windows Millennium Edition
  • Microsoft Windows 98 Second Edition
  • Microsoft Windows 98 Standard Edition
Keywords: 
kbhowto KB272623
 

Article Translations