Annoyances.org
Home » Windows 2000 Discussion Forum » Message 1060025703 » Entire Thread Search | Help | Home
  
Question about 'Print Out a Directory Listing'
Showing all messages in thread #1060025703
Windows 2000 Annoyances Discussion Forum


The following are all of the messages in this thread (5 in all), shown in chronological order. Click any message subject to view that message by itself or to view the thread hierarchy.
Question about 'Print Out a Directory Listing'
Monday, August 4, 2003 at 12:35 pm
Posted by J. Michael Race (1 messages posted)

This is the old way but is works. 1. Open a command window (DOS). 2. Set the directory to the top level you want a list of. 3. Input the command tree /f >dirlist.txt . 4. A file will be created at the directory level you are at with the name dirlist.txt that contains a full list of all files and directories from that point down. This text file can be printed or imported in to other programs.

[Reply or follow-up to this message]

re: Question about 'Print Out a Directory Listing'
Tuesday, August 5, 2003 at 12:45 pm
Posted by ThaiTu (145 messages posted)

type dir > file.txt you can type help dir for specific items.

[Reply or follow-up to this message]

Copy To Clipboard as Filename
Wednesday, July 21, 2004 at 9:35 am
Posted by Steve (2 messages posted)

This feature is very nice.... but I need to include creation/modification dates. Any idea how to do this?

[Reply or follow-up to this message]

re: Question about 'Print Out a Directory Listing'
Friday, December 17, 2004 at 12:36 pm
Posted by GuidoZ (1 messages posted)

Another way is through a small batch file I wrote. (I've also encorporated it into 
the Registry so it works from a right-click.) Following is both files - copy them 
to notepad, then save them as indicated. Move "list.bat" to the C:\WINDOWS\ directory, 
then double click "list.reg". (You will need to edit list.reg if your Windows directory 
is not C:\WINDOWS\.)

---Copy everything below to Notepad, save as "list.bat"---
@echo off 
dir /s %1 /-p /o:gn > "%temp%\Listing.txt" 
notepad "%temp%\Listing.txt"
del "%temp%\Listing.txt"
exit

rem ---- TO PRINT ----
rem @echo off 
rem dir %1 /-p /o:gn > "%temp%\Listing.txt" 
rem notepad /p "%temp%\Listing.txt"
rem start /w notepad /p "%temp%\Listing.txt" 
rem del "%temp%\Listing.txt" 
rem exit
rem ---- TO PRINT ----
---Copy everything above to Notepad, save as "list.bat"---

Now for the Registry file...

---Copy everything below to Notepad, save as "list.reg"---
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Folder\shell\Folder_list_to_file\command]
@="C:\\WINDOWS\\list.bat \"%1\""
---Copy everything above to Notepad, save as "list.reg"---

After you've done everything right, you should have two files:
 - list.bat
 - list.reg

Again, first copy list.bat to your Windows folder. Then double-click list.reg to 
add it to teh right click. To use, simply right click any folder and select "Folder 
list to file". It will pop open Notepad with your directory listing, complete with 
full path, name, modified date and size. You should save it somewhere else if you'd 
like to keep it. After closing off Notepad, the batch file will delete the temporary 
file (listing.txt) it created. =)

--
Peace. ~G





On Monday, August 4, 2003 at 12:35 pm, J. Michael Race wrote:
>This is the old way but is works.
>1. Open a command window (DOS).
>2. Set the directory to the top level you want a list of.
>3. Input the command tree /f >dirlist.txt .
>4. A file will be created at the directory level you are at with the name dirlist.txt
>that contains a full list of all files and directories from that point down. This
>text file can be printed or imported in to other programs.
>
>

[Reply or follow-up to this message]

re: Question about 'Print Out a Directory Listing'
Sunday, December 17, 2006 at 8:59 am
Posted by Ken (1 messages posted)

I needed something like this to keep track of what soundfonts were great and which ones weren't...this worked like a dream, thanks a MILLION!! Kenny


On Friday, December 17, 2004 at 12:36 pm, GuidoZ wrote:
>Another way is through a small batch file I wrote. (I've also encorporated it into
>the Registry so it works from a right-click.) Following is both files - copy them
>to notepad, then save them as indicated. Move "list.bat" to the C:\WINDOWS\ directory,
>then double click "list.reg". (You will need to edit list.reg if your Windows directory
>is not C:\WINDOWS\.)
>
>---Copy everything below to Notepad, save as "list.bat"---
>@echo off
>dir /s %1 /-p /o:gn > "%temp%\Listing.txt"
>notepad "%temp%\Listing.txt"
>del "%temp%\Listing.txt"
>exit
>
>rem ---- TO PRINT ----
>rem @echo off
>rem dir %1 /-p /o:gn > "%temp%\Listing.txt"
>rem notepad /p "%temp%\Listing.txt"
>rem start /w notepad /p "%temp%\Listing.txt"
>rem del "%temp%\Listing.txt"
>rem exit
>rem ---- TO PRINT ----
>---Copy everything above to Notepad, save as "list.bat"---
>
>Now for the Registry file...
>
>---Copy everything below to Notepad, save as "list.reg"---
>Windows Registry Editor Version 5.00
>
>[HKEY_CLASSES_ROOT\Folder\shell\Folder_list_to_file\command]
>@="C:\\WINDOWS\\list.bat \"%1\""
>---Copy everything above to Notepad, save as "list.reg"---
>
>After you've done everything right, you should have two files:
> - list.bat
> - list.reg
>
>Again, first copy list.bat to your Windows folder. Then double-click list.reg to
>add it to teh right click. To use, simply right click any folder and select "Folder
>list to file". It will pop open Notepad with your directory listing, complete with
>full path, name, modified date and size. You should save it somewhere else if you'd
>like to keep it. After closing off Notepad, the batch file will delete the temporary
>file (listing.txt) it created. =)
>
>--
>Peace. ~G
>
>

[Reply or follow-up to this message]

Tip: Use one of the [Reply or follow-up to this message] links above to add a message to this thread
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.