Directory listing

I know this isn't stricly Spectrum related,but I can't think of anyone better to entrust my technical problems with than the Spectrum brotherhood.
Does anyone know how to list the contents of a directory in windows as a text file? I want to list the contents of my emulation/rom directories so I can give them to a friend, but I've no idea how. Im sure this cant be hard, but I cant work it out. Any ideas?
Post edited by Sharopolis on

Comments

  • edited November 2002
    Or use dos prompt
    dir *.*>text.txt
    This will create a file called text.txt and write all the output from dir *.* (make sure its in the games directory) to a file instead of the screen
    I'm a 21st Century digital boy, I don't know how to live but I've got a lot of toys.
  • edited November 2002
    On 2002-11-05 07:08, madmekon wrote:
    Or use dos prompt
    dir *.*>text.txt
    This will create a file called text.txt and write all the output from dir *.* (make sure its in the games directory) to a file instead of the screen

    Make that
    dir *.* /S > text.txt
    for subdirectory's as well.
  • edited November 2002
    It'd be nice to have it alphabetically sorted, as well:

    dir *.* /s /o:n > list.txt

    (or you'd better have the list.txt file created somewhere else, otherwise it'll show up in the file list :)
  • edited November 2002
    Or add /B after the DIR command to just show the filenames.. This may not always be suitable, but try it and see if you prefer it...
  • edited November 2002
    Cheers folks!
    This is always the place to come for advice, Spectrum related or not.
Sign In or Register to comment.