Question: Printing List of Files In a Folder

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a folder containing .doc and .xls files. I would like to print a list
of the files in that folder.

Even a "print screen" option would be acceptable.

How can I do this?

Thanks
 
Replied to [oldtimer]s message :
I have a folder containing .doc and .xls files. I would like to print a list
of the files in that folder.

Even a "print screen" option would be acceptable.

How can I do this?

Thanks


Click Start > Run > CMD
And run this command :

dir C:\Windows\*.doc;C:\Windows\*.xls /b > "%userprofile%\Desktop\Result.txt"

change C:\Windows to the path of folder that you want to use.

Now open the result.txt file on desktop and print the file using File>Print



Good Luck, Ayush.
 
In
oldtimer said:
I have a folder containing .doc and .xls files. I would like to
print a list of the files in that folder.

Even a "print screen" option would be acceptable.

How can I do this?

Thanks

What about using something like this in a command prompt?

dir *.* >c:\myfile.txt

Then open & print it?
 
oldtimer said:
I have a folder containing .doc and .xls files. I would like to print a list
of the files in that folder.

Even a "print screen" option would be acceptable.

How can I do this?

Thanks

There's a utility app that's often recommended for this, but I can't
remember it, so instead:

open a command prompt by going to Start > Run and typing "cmd.exe"
(without quotes) and click OK.
navigate to the folder in question using cd (change directory) command
type "dir > myfiles.txt" (without quotes) and press Enter.

The file myfiles.txt will be in the folder in question. Open and print
using Notepad.

Alternatively, you can type a fully-specified file name for the target file:
dir > "C:\Documents and Settings\userid\My Documents\myfiles.txt"

Or for the folder that you want to list:
dir "C:\Documents and Settings\userid\My Documents" > C:\myfiles.txt

Or, of course, for both.
 
oldtimer said:
I have a folder containing .doc and .xls files. I would like to
print a list of the files in that folder.

Even a "print screen" option would be acceptable.

How can I do this?


Here are four 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. Write (for example in Notepad) a 1-line text file:
DIR %1 /O >LPT1:

Save it as "printdir.bat" in the "Send To" folder.

Then, to print list of files in any folder, right-click that folder and
select Send to | printdir.bat

To include subfolders, change the comand to DIR %1 /O/S >LPT1:

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

4. 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
 
oldtimer said:
I have a folder containing .doc and .xls files. I would like to print a list
of the files in that folder.


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

Even a "print screen" option would be acceptable.


Pressing the <PrtScn> key copies the entire display to the
clipboard. Pressing <ALT>+<PrtScn> copies only the active Window to
the clipboard (iow, into RAM). To view the screen capture, open a
graphics program, such as MS Paint, and press <CTRL>+V. This will
paste the contents of the clipboard (your screenshot) into the open
file, and allow you to view it or save it as a file for later use.

How to Capture Screen Shots in Windows Using the Print Screen Key
http://support.microsoft.com/default.aspx?scid=kb;en-us;173884

How can I do this?

As above; take your pick.


--

Bruce Chambers

Help us help you:



They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. -Benjamin Franklin

Many people would rather die than think; in fact, most do. -Bertrand Russell
 
oldtimer said:
I have a folder containing .doc and .xls files. I would like to print a list
of the files in that folder.

Even a "print screen" option would be acceptable.

How can I do this?

Thanks

Hi OldTimer;

I use Karen's print Directory application (Freeware). It works great
and you can't beat the price with a stick.

BTW. I have been playing with computers for 35+ years, does that
make me an OldTimer too?

Ciao . . . C.Joseph

"When hope is lost . . . the spirit dies."
-- Lao Tzu

http://blog.tlerma.com/
 
Hi OldTimer;

I use Karen's print Directory application (Freeware). It works great
and you can't beat the price with a stick.

BTW. I have been playing with computers for 35+ years, does that
make me an OldTimer too?

Ciao . . . C.Joseph

"When hope is lost . . . the spirit dies."
-- Lao Tzu

http://blog.tlerma.com/

To add the print directory feature to Windows Explorer, follow these steps:

Open Notepad, and then copy and 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
Save the file as Prin.bat in the Windows directory, and then close Notepad.


Start Windows Explorer, click Tools, and then click Folder Options.


Click the File Types tab, and then click File Folder.


Click Edit, and then click New.


In the Action box, type Print Directory Listing.


In Application used to perform action, click Prin.bat, and then click OK.


Click OK, click Apply, and then click OK.


Open Windows Explorer, right-click the folder that you would like to print a
directory listing of, and then click Print Directory Listing.
=======================================================================================

With some modifications you can get it to copy to text

=============

@echo off
dir %1 /-p /o:gn > "%1%\DirList"
start notepad "%1%\DirList"
exit
____ _
| __\_\_o____/_|
<[___\_\_-----<------------------<No Spam Please><
| o'
 

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

Back
Top