How to add the print directory feature to Windows Explorer (272623)



The information in this article applies to:

  • Microsoft Windows Server 2003, Enterprise Edition
  • Microsoft Windows Server 2003, Datacenter Edition
  • Microsoft Windows Server 2003, Standard Edition
  • 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

This article was previously published under Q272623

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.

Modification Type:MinorLast Reviewed:12/21/2004
Keywords:kbhowto KB272623