Annoyances.org
Home » Windows 2000 Discussion Forum » Message 1136688484 Search | Help | Home
  
re: 'Print Out a Directory Listing' in Win2000
Saturday, January 7, 2006 at 6:48 pm
Windows 2000 Annoyances Discussion Forum
Posted by Ben (1 messages posted)


THANK YOU!!! You did this post two years ago, but I was sitting here going crazy because I needed a directory listing to paste into Excel. You explaination was great. I've seen similar solutions but I didn't understand them, and my computer has admin restrictions. Thanks. Only things I saw that had differences but didn't effect me were:
>2. Save the file as Dir2Txt.bat in the root of the C:\NTWIN, and then close Notepad.
>11. Click on OK then on CLOSE again _____________________________________


On Sunday, April 4, 2004 at 10:26 am, Barrie wrote:
>I'm using XP, but as far as I know, XP & 2K are basically the same, so the following
>should be the same for both OS's. I don't use 2K, so I can't check for differences.
>


>
>My method is similar to those already posted, but a) doesn't involve editing the
>registry and b) creates a text file rather than just outputting to printer. That
>way you can alter the file in Notepad before printing if necessary...


>
>1. Open Notepad, and then copy and paste the following three lines of text into it:
>


>
>@echo off


>dir %1 /-p /S /D /o:gn > C:\Temp.txt


>exit


>
>2. Save the file as Dir2Txt.bat in the root of the C:\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 scroll down the list of registered file types
>until you find the Folder entry in the 'File Types' column. (You may find it easier
>to find if you sort the entries alphabetically by clicking on
>the grey bar at the top of the 'File Types' column).


>
>5. Click on the Folder entry to highlight it.


>
>6. Click on the Advanced button.


>
>7. Click on the New button.


>
>8. In the Action box, type Directory To Text File.


>
>9. In the 'Application used to perform action' box, click browse and locate the Dir2Txt.bat
>you saved in step 2. Then click OK.


>
>10. In the Edit Filetype box, click on the Explore action and then on the Set Default
>button. Explore will turn to bold.


>
>11. Click on OK then on OK again.


>
>12. Open Windows Explorer, right-click the folder that you would like to create a
>text file of, and you should see a new entry - Directory To Text File. Click on it
>and a text file called C:\Temp.txt will be created. This file can be opened with
>Notepad and will contain a detailed listing of the directory's contents - including
>sub-directories. This can be printed out if required after formatting.


>
>Note: The required filename (C:\Temp.txt) can be changed in the bat file if required
>and the existing text file is overwritten each time, so move or rename it if you
>want to keep it.


>
>If anything isn't 100% correct for Win2K in this post, perhaps someone can post an
>amended version?


>
>BC




Written in response to:
re: 'Print Out a Directory Listing' in Win2000 (Barrie: Sunday, April 4, 2004 at 10:26 am)

There are presently no replies to this message.

All messages in this thread [show all]
-'Print Out a Directory Listing' in Win2000 (WHO: Sat, Mar 29, 2003, 5:19 pm)
*re: 'Print Out a Directory Listing' in Win2000 (Krystyna: Sun, May 4, 2003, 6:10 am)
*re: 'Print Out a Directory Listing' in Win2000 (Carl Osterwisch: Thu, Jun 12, 2003, 10:36 am)
-re: 'Print Out a Directory Listing' in Win2000 (Erik Berg: Tue, Oct 28, 2003, 7:56 am)
-re: 'Print Out a Directory Listing' in Win2000 (Barrie: Sun, Apr 4, 2004, 10:26 am)
*re: 'Print Out a Directory Listing' in Win2000 (Ben: Sat, Jan 7, 2006, 6:48 pm)
*re: 'Print Out a Directory Listing' in Win2000 (Frank: Fri, Mar 4, 2005, 8:51 pm)
*re: 'Print Out a Directory Listing' in Win2000 (norman: Wed, Mar 1, 2006, 6:33 pm)
*re: 'Print Out a Directory Listing' in Win2000 (norman: Wed, Mar 1, 2006, 6:37 pm)
Return to the Windows 2000 Discussion Forum

All content at Annoyances.org is Copyright © 1995-2008 Creative Elementtm All rights reserved.
Please do not plagiarize; redistributing these pages without permission is strictly prohibited.