|
|
|
re: Question about 'Print Out a Directory Listing'
Friday, December 17, 2004 at 12:36 pm Windows 2000 Annoyances Discussion Forum
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.
>
>
|
All messages in this thread [show all]
 |  | re: Question about 'Print Out a Directory Listing' (GuidoZ: Fri, Dec 17, 2004, 12:36 pm) |
| |
| |
Return to the Windows 2000 Discussion Forum
|
|
|
|