Categories
Windows

Print Directory List (to file) in XP Windows Explorer

  1. Make a .bat file.
    @echo off
    dir %1 /-p /o:gn > “%CD%\dirlist.txt”
    exitp%\Listing”
    exit

      1. Save .bat file in scripts folder.
      2. Start Windows Explorer, click Tools, and then click Folder Options.
      3. Click the File Types tab, and then click File Folder.
      4. Click Edit, and then click New.
      5. In the Action box, type Print Directory Listing.
      6. In Application used to perform action, select the .bat file.
      7. Open Windows Explorer, right-click the folder that you would like to print a directory listing of, and then click Print Directory Listing.

      This is a derivative straight from Microsoft.

      Source:
      http://support.microsoft.com/kb/272623