Solved

Print Directory Contents

Posted on 2001-06-17
9
273 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

Are your corporate email signatures appalling?

Is it scary how unprofessional your email signatures look? Do users create their own terrible designs and give themselves stupid job titles? You can make this a lot easier for yourself by choosing an email signature management solution from Exclaimer today.

Join & Write a Comment

This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

706 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

12 Experts available now in Live!

Get 1:1 Help Now