(Solved) printing file names

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

pauljwest

Thread Starter
Joined
Dec 2, 2001
Messages
56
What is the easiest way to print file names as a list??

Thanks for your help.
Paul
 
Joined
Jul 29, 2001
Messages
21,334
There are shareware utilties out there for this, but you can do it from a DOS window also. Typing the dir command with any switches you want and then piping the output to a text file. Here is the commands available in the dir command:

DIR [drive:][path][filename] [/P] [/W] [/A[[:]attributes]]
[/O[[:]sortorder]] [/S] [/B] [/L] [/V] [/4]

[drive:][path][filename]
Specifies drive, directory, and/or files to list.
(Could be enhanced file specification or multiple filespecs.)
/P Pauses after each screenful of information.
/W Uses wide list format.
/A Displays files with specified attributes.
attributes D Directories R Read-only files
H Hidden files A Files ready for archiving
S System files - Prefix meaning not
/O List by files in sorted order.
sortorder N By name (alphabetic) S By size (smallest first)
E By extension (alphabetic) D By date & time (earliest first)
G Group directories first - Prefix to reverse order
A By Last Access Date (earliest first)
/S Displays files in specified directory and all subdirectories.
/B Uses bare format (no heading information or summary).
/L Uses lowercase.
/V Verbose mode.
/4 Displays year with 4 digits (ignored if /V also given).

Switches may be preset in the DIRCMD environment variable. Override
preset switches by prefixing any switch with - (hyphen)--for example, /-W.

Do something like if you are at the c:\windows prompt type in dir /o:N /s /b >C:\Directory.txt this takes the contents of the windows directory, all sub directories, outputs them alphabetically in a bare format to the directory.txt file.
 

TonyKlein

Malware Specialist
Joined
Aug 26, 2001
Messages
10,392
A nice little freeware app that allows you to do that, and a couple of things more, is <A HREF="http://www.rjhsoftware.com/rjhextensions/">RjhExtensions</A>

Greetz,
 

pauljwest

Thread Starter
Joined
Dec 2, 2001
Messages
56
Thanks all....exactly what I was looking for. That little freeware program rocks.

Best of luck,
Paul
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top