Printing File List

  • Thread starter Rick \Nutcase\ Rogers
  • Start date
R

Rick \Nutcase\ Rogers

Hi gls,

Open a command prompt (start/run cmd), go to the folder of choice.

Run "dir> file.txt". This will create a text file of the contents of the
folder that you can open in notepad for printing or saving.

If you wish to add the contents of the subdirectories, run "dir
<drive><folder> /s> file.txt".

You may find this useful:

HOW TO: Add "Print Directory" Feature for Folders in Windows XP [Q321379]
http://support.microsoft.com/?kbid=321379

If you head to google.com and search on "free directory printer", you will
also find many other useful tools.

--
Best of Luck,

Rick Rogers aka "Nutcase" MS-MVP - Windows
Windows isn't rocket science! That's my other hobby!

Associate Expert - WinXP - Expert Zone
 
N

Nicholas Hall

This should be what you want.

---------------------------------------------------------
SUMMARY

Create the Printdir.bat File
Create a New Action for File Folders
Edit the Registry
SUMMARY
This article describes how to add a "print directory" feature
for
folders in Windows XP. After you follow the steps in this
article,
you can right-click a folder, and then click Print Directory
Listing
to print a directory listing of the folder's contents.

back to the top
Create the Printdir.bat File
To create the Printdir.bat file:
Click Start, click Run, type notepad, and then click OK.
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
On the File menu, click Exit, and then click Yes to save the
changes.
In the Save As dialog box, type %windir%\Printdir.bat, and
then
click Save.
back to the top
Create a New Action for File Folders
Click Start, click Control Panel (or, point to Settings, and
then
click Control Panel), and then click Folder Options.
On the File Types tab, click File Folder.
Click Advanced, and then click New.
In the Action box, type Print Directory Listing.
In the Application used to perform action box, type
printdir.bat,
and then click OK.
Click OK, click OK, and then click Close.
back to the top
Edit the Registry
WARNING: If you use Registry Editor incorrectly, you may cause
serious problems that may require you to reinstall your
operating
system. Microsoft cannot guarantee that you can solve problems
that
result from using Registry Editor incorrectly. Use Registry
Editor
at your own risk.

After you follow the steps in the previous sections, Search
Companion may start when you double-click a folder (instead of
the
folder being opened). Or, if you have associated other actions
with
file folders, those actions may be performed instead.

To resolve this issue:
Start Registry Editor (Regedt32.exe).
Locate the Default value under the following key in the
registry:
HKEY_CLASSES_ROOT\Directory\shell
Click Modify on the Edit menu.
Type none in the File data box, and then click OK.
Quit Registry Editor.
back to the top
Last Reviewed:10/26/2002
Keywords:kbhowto kbHOWTOmaster KB321379 kbAudITPro



Send Print Help
Last reviewed 26 October 2002

© 2003 Microsoft Corporation. All rights reserved. Term of Use Privacy
Policy
Disability/accessibility
-------------------------------------------------------------
Rick "Nutcase" Rogers said:
Hi gls,

Open a command prompt (start/run cmd), go to the folder of choice.

Run "dir> file.txt". This will create a text file of the contents of the
folder that you can open in notepad for printing or saving.

If you wish to add the contents of the subdirectories, run "dir
<drive><folder> /s> file.txt".

You may find this useful:

HOW TO: Add "Print Directory" Feature for Folders in Windows XP [Q321379]
http://support.microsoft.com/?kbid=321379

If you head to google.com and search on "free directory printer", you will
also find many other useful tools.

--
Best of Luck,

Rick Rogers aka "Nutcase" MS-MVP - Windows
Windows isn't rocket science! That's my other hobby!

Associate Expert - WinXP - Expert Zone



glas said:
Is there a way to print the list of files in a directory?

chrissy
 
R

Rick \Nutcase\ Rogers

Um, yeh, that would be the contents of the article I just posted a link to.

--
Best of Luck,

Rick Rogers aka "Nutcase" MS-MVP - Windows
Windows isn't rocket science! That's my other hobby!

Associate Expert - WinXP - Expert Zone



Nicholas Hall said:
This should be what you want.

---------------------------------------------------------
SUMMARY

Create the Printdir.bat File
Create a New Action for File Folders
Edit the Registry
SUMMARY
This article describes how to add a "print directory" feature
for
folders in Windows XP. After you follow the steps in this
article,
you can right-click a folder, and then click Print Directory
Listing
to print a directory listing of the folder's contents.

back to the top
Create the Printdir.bat File
To create the Printdir.bat file:
Click Start, click Run, type notepad, and then click OK.
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
On the File menu, click Exit, and then click Yes to save the
changes.
In the Save As dialog box, type %windir%\Printdir.bat, and
then
click Save.
back to the top
Create a New Action for File Folders
Click Start, click Control Panel (or, point to Settings, and
then
click Control Panel), and then click Folder Options.
On the File Types tab, click File Folder.
Click Advanced, and then click New.
In the Action box, type Print Directory Listing.
In the Application used to perform action box, type
printdir.bat,
and then click OK.
Click OK, click OK, and then click Close.
back to the top
Edit the Registry
WARNING: If you use Registry Editor incorrectly, you may cause
serious problems that may require you to reinstall your
operating
system. Microsoft cannot guarantee that you can solve problems
that
result from using Registry Editor incorrectly. Use Registry
Editor
at your own risk.

After you follow the steps in the previous sections, Search
Companion may start when you double-click a folder (instead of
the
folder being opened). Or, if you have associated other actions
with
file folders, those actions may be performed instead.

To resolve this issue:
Start Registry Editor (Regedt32.exe).
Locate the Default value under the following key in the
registry:
HKEY_CLASSES_ROOT\Directory\shell
Click Modify on the Edit menu.
Type none in the File data box, and then click OK.
Quit Registry Editor.
back to the top
Last Reviewed:10/26/2002
Keywords:kbhowto kbHOWTOmaster KB321379 kbAudITPro



Send Print Help
Last reviewed 26 October 2002

© 2003 Microsoft Corporation. All rights reserved. Term of Use Privacy
Policy
Disability/accessibility
-------------------------------------------------------------
Rick "Nutcase" Rogers said:
Hi gls,

Open a command prompt (start/run cmd), go to the folder of choice.

Run "dir> file.txt". This will create a text file of the contents of the
folder that you can open in notepad for printing or saving.

If you wish to add the contents of the subdirectories, run "dir
<drive><folder> /s> file.txt".

You may find this useful:

HOW TO: Add "Print Directory" Feature for Folders in Windows XP [Q321379]
http://support.microsoft.com/?kbid=321379

If you head to google.com and search on "free directory printer", you
will
also find many other useful tools.

--
Best of Luck,

Rick Rogers aka "Nutcase" MS-MVP - Windows
Windows isn't rocket science! That's my other hobby!

Associate Expert - WinXP - Expert Zone



glas said:
Is there a way to print the list of files in a directory?

chrissy
 
B

Bruce Chambers

Greetings --

From the command prompt (Start > Run > Cmd.exe), simply change to
the desired directory and type "dir > filelist.txt" or "dir > lpt1,"
just as you used to do in DOS. Any of the switches for the DIR
command (type "dir /?") will work with this command, if you wish to
modify the output. You can then subsequently edit the resulting text
file using NotePad, WordPad, Word, etc.

Alternatively:

HOW TO Add a Print Directory Feature for Folders in Windows XP
http://support.microsoft.com/?kbid=321379


Bruce Chambers

--
Help us help you:




You can have peace. Or you can have freedom. Don't ever count on
having both at once. -- RAH
 
K

Ken Blake, MVP

In
glas said:
Is there a way to print the list of files in a directory?


Here are three ways:

1. Go to a command prompt and issue the command

dir [drive:folder] > c:\tempfilename (you can use any name and
put it in any folder you want)

Then open notepad, open tempfilename, and print it from there.


2. Go to
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q321379
and follow the instructions there.


3. Download and use any of the several freeware/shareware
utilities that can do this, such as the popular
http://www.karenware.com/powertools/ptdirprn.asp
 
M

Mr. B

Bruce Chambers said:
Greetings --

From the command prompt (Start > Run > Cmd.exe), simply change to
the desired directory and type "dir > filelist.txt" or "dir > lpt1,"
just as you used to do in DOS. Any of the switches for the DIR
command (type "dir /?") will work with this command, if you wish to
modify the output. You can then subsequently edit the resulting text
file using NotePad, WordPad, Word, etc.

Alternatively:

HOW TO Add a Print Directory Feature for Folders in Windows XP
http://support.microsoft.com/?kbid=321379


Bruce Chambers

--
Help us help you:




You can have peace. Or you can have freedom. Don't ever count on
having both at once. -- RAH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Batch file for file list 2
File folder actions 1
Saving Windows Updates to File 3
Printing Folder Contents 2
Switch User does not work anymore. 1
Dual operating system ?? 2
Help! trouble with IE 5
ACPI 3

Top