1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

How to save the 'list of contents' of a folder?

Discussion in 'Legacy Windows' started by Ingeniero1, 2004/07/20.

Thread Status:
Not open for further replies.
  1. 2004/07/20
    Ingeniero1 Contributing Member

    Ingeniero1 Inactive Thread Starter

    Joined:
    2004/05/27
    Messages:
    173
    Likes Received:
    0
    Back when DOS was king, it was a simple task to print or to save to a file the contents of a subdirectory, a.k.a. folder. All you had to do was to issue the command DIR>PRN to have it printed, or DIR>LIST.TXT to have the list of files and folders saved to file LIST.TXT.

    This was great when it was necessary to document the files in a folder, or to sort them, etc. as the saved file could be opened with XL, and the sky was the limit.

    I still use DOS to these tasks, but wondered...

    Is there a way, using just Windows (2000, ME, XP,...), to print* or to save to a file the 'list of contents' of a folder?

    (*) [Alt-PrintScreen] and paste to a Word doument for printing is not what I am looking for...

    Thanks!

    Alex
     
  2. 2004/07/20
    Liam Lifetime Subscription

    Liam Inactive

    Joined:
    2003/02/21
    Messages:
    199
    Likes Received:
    0
    Liam,
    #2

  3. to hide this advert.

  4. 2004/07/20
    Ingeniero1 Contributing Member

    Ingeniero1 Inactive Thread Starter

    Joined:
    2004/05/27
    Messages:
    173
    Likes Received:
    0
    Thank You!
    That will work nicely. (Too bad that Win doesn't include such a utility.)
    Alex
     
  5. 2004/07/20
    Newt

    Newt Inactive

    Joined:
    2002/01/07
    Messages:
    10,974
    Likes Received:
    2
    Ingeniero1 - piping things to a file from a command line prompt still works fine with Nt4/2K/XP/2K3. Not sure about piping to a printer since I haven't used a local printer for a while. And the DIR command now has lots of nice new features you probably wished for with earlier versions.

    A thought if you like to run things this way is that you may be starting the wrong DOS window.

    start~run~command will open an old-style 16 bit session that was kept for compatibility with a few older programs and behaves like a 16 bit app (Yuck!!).

    start~run~cmd will start a 32 bit app that you would like lots better.

    So

    Dir > c:\stuff.txt should give you the results you want and
    Dir >> c:\stuff.txt will append rather than over-write just like in the olden days. :D
     
    Newt,
    #4
Thread Status:
Not open for further replies.

Share This Page

  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.