Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: rt-clk PRINT DIRECTORY LISTING doesn't give me options I want

09 Aug 2012   #1

Win 7 Pro 64-bit
rt-clk PRINT DIRECTORY LISTING doesn't give me options I want

Back in DOS days, I would redirect DIR>LPT1, etc., as often as wished. But we could not do anthing about size of font, etc.
The right-click PRINT DIRECTORY LISTING that I now have added to my Windows Explorer simply prints directly to my default printer without my having any formatting control. It looks like, and is, the same I would get by the old DOS command line. But the font is much too large, giving me only 37 lines per page (pages 2 et sec., fewer on page 1). Also, I am not given the chance to specify duplex printing, or choose my printer. If I could print to PDF, using any of several utilities I have, I could do some kind of image manipulation to shrink the images, but is not what I want, because it would add otherwise unneeded steps. I could perhaps set my default printer to one of my PDF writers, print to a file, then use one of my OCR utilities to convert to TXT, and then manipulate the text on one of my word processors, etc.

Maybe there are better "print directory listing" options out there. Tell me about them, please.

My System SpecsSystem Spec
09 Aug 2012   #2

Windows 10 Pro X64

I don't know where I got this from:

You can setup a QUASI GUI method as follows.

Create a batch file with the following content:

dir /a /-p /o:gen >"%homepath%\desktop\filelisting.txt"
notepad "%homepath%\desktop\filelisting.txt"
del "%homepath%\desktop\filelisting.txt

Open Windows Explorer, click Tools, then click Folder Options.
Click the File Types tab, and then click on (None) Folder.
Click the Advanced button and then click New to open the New Action window.

In the Action box, type Create File List.
Browse to the location where the .bat file you created is located, select it and it will be the Application Used to Perform Action.
Click OK as needed to finish.

Now open Windows Explorer. Right click on a folder you want the contents of and select Create File List.

Poof, the list appears in Notepad. You can edit it or print it or whatever, but if you want to keep it you need to save it under a different name as the batch file deletes it when you close Notepad.
Since it opens the output in Notepad you can change font sizes, save it and open with another editor or word processor and do whatever you want with it.
My System SpecsSystem Spec
10 Aug 2012   #3

Win 7 Pro 64-bit

I have Win7 Pro 64 sp1
When I go Folder Options, I see the window that is attached. I must be ignorant of how to select File Types.

I am stuck until I can move on with the batch file you cited.

Attached Files
File Type: pdf CreateFileList problem.pdf (315.7 KB, 5 views)
My System SpecsSystem Spec

10 Aug 2012   #4

Win 7 Pro 64-bit

As it happens, I have just Googled on "File Types" and it seems that this functionality disappeared since XP; not present in Vista or Win7.

Where do we go from here?
My System SpecsSystem Spec
10 Aug 2012   #5

Linux (Mint is primary) / XP, Win7 Home / Win7 Pro, Ultimate / Win8.1 / Win10 archived VM

I have used Karen's Directory Printer for years:

Karen's Directory Printer

My System SpecsSystem Spec
10 Aug 2012   #6

Win 7 Pro 64-bit
Karen's lister

I tried it. I found that the last line of my listings on each page ran off the bottom edge, and info on the right the same. For my printer, I guess that I need more margin control for the lister, or I just don't know how to use it properly.
My System SpecsSystem Spec
10 Aug 2012   #7

Windows 10 Pro X64

My bad, those instructions were written for XP/ On Windows 7 I did this using a program called ContextEdit from PC Magazine. You just scroll down to Folder and add a new right click entry as I described above or manually add it to the registry as follows:

Open regedit and navigate to HKEY_CLASSES_ROOT\Folder\shell.
Right click on shell and create a new Key called genfilelist
Under that create a new Key called command
Select command then double click on the Default entry in the right pane to edit it. In the Value data field add the following, replacing it with the path to the batch file you created:

d:\tools\GenFileList.bat %1

Note: Corrected the link to point to the free version 1.2 at (thanks derekimo).
My System SpecsSystem Spec
11 Aug 2012   #8

Win 7 Pro 64-bit

$8 is not too much to pay for a good utility. However, the PC Mag screen shows compatibility with legacy OSs, even pre XP. Certainly not Win7. And, it seems to be dated back to Jan/Feb 2001. Are we certain that it is compatible with Win7?

I have never done a regedit directly. If you know for sure that ContextEdit works OK with Win7, could you post baby step instructions starting with the downloading of ContextEdit from the PC Mag site?
My System SpecsSystem Spec
11 Aug 2012   #9

Microsoft Community Contributor Award Recipient

Win 10 Pro x64

My System SpecsSystem Spec
11 Aug 2012   #10

Windows 10 Pro X64

Yes, the PCMag ContextEdit works on Windows 7. I've used it as I mentioned.
My System SpecsSystem Spec

 rt-clk PRINT DIRECTORY LISTING doesn't give me options I want

Thread Tools

Similar help and support threads
Thread Forum
IE 11 when select File Print the Print Dialog Box doesn't open
When we install IE11 after installing some systems on a windows 7 32 bit PC; when select File Menu Print action the Print dialog box which should appear doesn't pop up. Not responding at all. Has somebody come accross this issue.
Browsers & Mail
Print directory listing to network printer.
I've installed MS's printdir.bat file but it's not working properly. When I select Print Directory Listing from the context menu in Windows Explorer, I can see a background flash that indicates the file is executing, but nothing gets to the printer. When I execute PrintDir.bat from the command...
MS Office Excel wont print, rest of them give prints
hi folk's once again need your utmost help here, which i am clueless to solve by every means. my specs are windows 7 64 Bit with latest updates and service pack Ms Office 2010 64 bit with latest update and service pack Problem :
Microsoft Office
Print FULL details of directory
How do I perform a directory print of a folder that gives me the options I want to see. I want to see the File Name, Dimensions (Height/Width), and Vertical/Horizontal Resolution of my images contained within. No program nor context menu edit I've come across allows for these options. Is this...
General Discussion
Can't print full contents of a directory.
I love to keep track of directory contents by printing them out. Various reasons. By going to a command prompt, then to the directory of choice, I can send the results of the "dir" command to "prn" with the ">" (greater than) sign. There are all sorts of switches to affect the way the...
Perm. Folder options.. file listing/columns changes.
Hello. I have problem with Windows 7 folder/file listing behavior. I 'appliy to folders' to my liking(view -> details) but Windows 7 keep changing its file listing to certain folders. for example.. currently listed with columns Name | Date modified | Type | Size (+ other options.. applied...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 16:03.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App