PC Pals Forum

Technical Help & Discussion => Website Design & Programming => Topic started by: fizic on November 01, 2007, 14:48

Title: Dos question
Post by: fizic on November 01, 2007, 14:48
It's years since I used Dos & have totally forgotten everything.  :dunno:

I used to know a Dos code for listing files on my pc in text format so that it could be opened into a spreadsheet for editting. As I recall it listed all directories in a particular field and subs and roots.

I have a million files which need colating and I really don't want to have to create a list by hand.  :cry:

I'd be really grateful is someone could help me out.

Cheers

fizic  :crazy:
Title: Re: Dos question
Post by: Rik on November 01, 2007, 15:24
If you want to do it from within Windows, pick up a copy of DirPrin from:

http://www.karenware.com/

Stretching my memory a bit, but wasn't the DOS command dir C:\*.* /s >C:\temp\files.txt

which would list all files in all folders on drive C, copying the output to the file C:\temp\fliles.txt.
Title: Re: Dos question
Post by: sam on November 01, 2007, 15:55
hmmm, i cant remember too much about dos - in linux it would be easy as writing ls > output.txt but I'm not sure about dos, i'll have a play when I get onto a windows machine... but maybe someone else does
Title: Re: Dos question
Post by: sam on November 01, 2007, 15:55


Stretching my memory a bit, but wasn't the DOS command dir C:\*.* /s >C:\temp\files.txt

which would list all files in all folders on drive C, copying the output to the file C:\temp\fliles.txt.


sounds right to me...
Title: Re: Dos question
Post by: fizic on November 02, 2007, 09:44
Yes it was in windows and that piece of code seems to be familiar.

Thanks alot for the help & have a great weekend.

fizic