1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

(Solved) printing file names

Discussion in 'All Other Software' started by pauljwest, Dec 15, 2001.

Thread Status:
Not open for further replies.
Advertisement
  1. pauljwest

    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
     
  2. Rockn

    Rockn

    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.
     
  3. TonyKlein

    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,
     
  4. pauljwest

    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
     
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 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/61901

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice