How do you print out a list of files in a directory or disk?

  • Thread starter Thread starter Phil Edwards
  • Start date Start date
P

Phil Edwards

When I had DOS on my old machine, I could go to a
directory print and get a list of the files on a disk or
in a directory. this gave me a list of files in a disk
that I could file with the disk.
How can it be done with Windows XP?
 
XP Directory Printer
http://www.updatexp.com/tip6.html

Print Out a Directory Listing
http://www.annoyances.org/exec/show/article01-451


--
Carey Frisch
Microsoft MVP
Windows XP - Shell/User

-----------------------------------------------------------------------


| When I had DOS on my old machine, I could go to a
| directory print and get a list of the files on a disk or
| in a directory. this gave me a list of files in a disk
| that I could file with the disk.
| How can it be done with Windows XP?
 
Hi Phil,

Open a MS-DOS box.
Goto the appropriate directory.
Type "Dir /b >list.txt"

[include "/s" for sub-directories listing]

--
Regards,
Ramesh [MS-MVP]
AIM: SRamesh2k


~ Please reply to newsgroup ~


When I had DOS on my old machine, I could go to a
directory print and get a list of the files on a disk or
in a directory. this gave me a list of files in a disk
that I could file with the disk.
How can it be done with Windows XP?
 
Phil said:
When I had DOS on my old machine, I could go to a
directory print and get a list of the files on a disk or
in a directory. this gave me a list of files in a disk
that I could file with the disk.
How can it be done with Windows XP?

To avoid searching for an installing new software, use your existing
capability, e.g. just like you did it before in DOS.

In XP, do it in the "command prompt" (not called DOS since it is not DOS)

dir > filelist.txt

where this will send the output of "dir" to the file "filelist.txt" and
you can use notepad (or other) to print. If you really want, you can
even direct the output direct to the printer, e.g.

dir > lpt1:
or
dir > \\server\\printersharename
 
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 Word.

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

Back
Top