Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: Vincent on March 04, 2003, 02:53:35 PM

Title: Win2k Directory Listing
Post by: Vincent on March 04, 2003, 02:53:35 PM
It's me again, but you'll be glad to know that I shouldn't have any more questions about the A1200 EZ-Tower :-)

I have a directory of mp3's and want a list of them printed out - I'm not gonna type every one of them into a text file myself because there's about 200 of them.

In AmigaDOS there's a way to output a drawer list to a text file ( dir >RAM:list.txt - I think).  Is there a way to so this in Win2k?
Title: Re: Win2k Directory Listing
Post by: mikeymike on March 04, 2003, 02:57:34 PM
Have you tried that command? :-)
Title: Re: Win2k Directory Listing
Post by: Vincent on March 04, 2003, 03:11:46 PM
Doh! :lol:
Title: Re: Win2k Directory Listing
Post by: SilvrDrgn on March 04, 2003, 03:32:04 PM
1) cd to the directory that contains the files you want listed.
2) dir /b > ..\list.txt
(/b is "bare" format, no directory command header or trailer information.  Plus, you use "..\list.txt" for the destination because otherwise the list.txt file itself will show up in the list.)
3) print the list.txt file
Title: Re: Win2k Directory Listing
Post by: Waccoon on March 04, 2003, 03:59:09 PM
Don't forget "dir /?" shows you everything.  Well, everything documented, at least.
Title: Re: Win2k Directory Listing
Post by: mikeymike on March 04, 2003, 04:18:49 PM
For added oddness in NT4, Win2k and beyond, get a command prompt up and type: cmd /?

Title: Re: Win2k Directory Listing
Post by: Vincent on March 04, 2003, 07:02:12 PM
Quote

mikeymike wrote:
For added oddness in NT4, Win2k and beyond, get a command prompt up and type: cmd /?



Yeah, 7 pages of almost usless stuff :-D

This is the exact command I used:

dir/o /b >D:\testing.txt

And it worked perfectly.  I don't know why I never thought of it before, I used to use DOS a lot in my early computing days.  I didn't think it'd be as simple as that, or if it would even work - it is a PC after all ;-) - and I never thought it'd be almost exactly the same as it is in AmigaDOS - let's face it PC's arent that sensible are they ;-)

Cheers guys :-D