Solved

Print Directory Contents

Posted on 2001-06-17
9
274 Views
Last Modified: 2013-12-28
I want to be able to print the contents of a directory (and its subdirectories) to Notepad (where it can be edited before printing) and ignore MS-DOS format names and extensions, showing full directory and file names first. Is this possible?
0
Comment
Question by:lhutton
9 Comments
 
LVL 15

Expert Comment

by:a.marsh
ID: 6199491
This is almost what you want (I'm not really a DOS expert, so I'm not sure if I can get get it do anymore):

1 - go to a command prompt
2 - change in to the directory that you want to list
3 - then run this command

dir /s /b *.* > filelist.txt

Now you can open filelist.txt in Notepad - in fact you can do that directly from the command prompt aswell:

notepad filelist.txt

You can of course use any filename you like instead of filelist.txt

:o)

Ant
0
 
LVL 3

Expert Comment

by:hendrik999
ID: 6199579
If you like to do it with a GUI try:
http://no-nonsense-software.com/printfolder/
0
 

Author Comment

by:lhutton
ID: 6200326
Many thanks for the suggestions, but I'm hoping for a DOS solution like:

@echo off
dir %1 /-p /o:gn > "%temp%\Listing"
start /w notepad /p "%temp%\Listing"
del "%temp%\Listing"
exit

- although this prints automatically and doesn't ignore MS-DOS format names and extensions, showing full directory and file names first.
0
 
LVL 5

Expert Comment

by:pelejab
ID: 6201890
I use a program called DragandFile gold which is similar to but a lot more powerful than Windows Explorer to do exactly this amongst other things. It can print directory lists or save them to an ascii file for loading to Excel etc. It also can "see" files inside a zip file and allow you to extract them direct without opening the complete zip file - it can also create zip files etc etc.
Download it from www.canyonsw.com and it will work for 60 days before asking for payment. A work around this is to change your computer date prior to loading it and once loaded change the date back to the correct date.
cheers, Pete
0
Free book by J.Peter Bruzzese, Microsoft MVP

Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

 

Author Comment

by:lhutton
ID: 6204206
Thanks, Pete. But it doesn't seem to be able to print the contents of a directory and its subdirectories, along with dates and everything.
0
 
LVL 59

Accepted Solution

by:
LeeTutor earned 25 total points
ID: 6204605
I'm not sure that a DOS solution is possible.  You might want to try this free program:

FOLDERPRINT  http://www.stgsys.com/folderprint.asp

STG FolderPrint is a very nice free program for printing the contents of your Windows folders.  You can configure the printout in a number of ways, for example:  print only folders, or only files, or both; filter the output using include and exclude masks which are based on dates, file sizes, or content; it gives you an Explorer-like structure for your selected drive, which you can then open up to any selected depth of subfolders; the printout design allows you to choose colors, backgrounds, headers and footers, and titles;  the columns can be reordered or removed, and can be sorted.  In addition to printing, you can export the output as either HTML or ASCII.  It works in Windows 9x, ME, and 2000.
0
 

Author Comment

by:lhutton
ID: 6205650
Thank you all for your suggestions. Both PrintFolder Pro and STG FolderPrint were able to produce *exactly* what I wanted. I'll ask CS to split points evenly between hendrik999 and LeeTutor.
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 6207386
lhutton has requested an adjustment to this question, to have both experts share equally.  Adjustment in process.  I will post a link for the other half for hendrik999 shortly.

Moondancer
Community Support Moderator @ Experts Exchange
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 6207397
hendrik999, please comment at this link to get your half share of this award.

http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=win98&qid=20138067

Moondancer
Community Support Moderator @ Experts Exchange
0

Featured Post

Too many email signature changes to deal with?

Are you constantly being asked to update your organization's email signatures? Do they take up too much of your time? Wouldn't you love to be able to manage all signatures from one central location, easily design them and deploy them quickly to users. Well, you can!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now