How do I make a text listing of folder contents?

P

Paul in Houston TX

binaryman said:
Peter Jason wrote on 03/11/2012 16:55 ET :
You should try Directory Report
http://www.file-utilities.com
It can print AVI properties
and generate reports into a .csv file which can be imported into Excel
Hopefully, the OP figured it out over the last 12 months.
 
C

Char Jackson

This works nicely! The only thing I would add is that you must
navigate to the desired directory (Records) first.
No, you can do it from anywhere if you specify the full path to the target
file, as in C:\Users\Owner\Records\dir.doc
 
J

J. P. Gilliver (John)

Char Jackson said:
No, you can do it from anywhere if you specify the full path to the target
file, as in C:\Users\Owner\Records\dir.doc
This is basic DOS; "dir > \records\dir.doc" will get a directory listing
of the directory (folder) you're in when you type it, and will put it in
a file called dir.doc in a folder called records off the root of the
current drive. You add a letter and colon (such as "c:" before the first
"\" if you want to specify a drive other than the one you're on at the
time of issuing. If you leave off the leading \, it will create the file
in a subdirectory called folder from the folder you're in when you call
it up. [Note that I don't think any of these forms will actually create
the folder/directory "records" - they just assume it already exists. I'm
not sure what happens if it doesn't - error message I think.]

Personally I wouldn't use ".doc" for the target filename; what it
creates is a text file, so I'd use .txt if I was going to specify an
extension. .doc implies it's going to be a word-processor file (with
fonts, bold, underline, and so on), which it isn't.
--
J. P. Gilliver. UMRA: 1960/<1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf

.... her greatest triumph to date has been doggy-paddling to each area of the
shipping forecast. - Eddie Mair (on Charlotte Green), Radio Times 13-19
October 2012
 
C

Char Jackson

This is basic DOS;
I can see why you'd be inclined to give a basic DOS lesson, since I didn't
word my response very well. ;-)
"dir > \records\dir.doc" will get a directory listing
of the directory (folder) you're in when you type it, and will put it in
a file called dir.doc in a folder called records off the root of the
current drive. You add a letter and colon (such as "c:" before the first
"\" if you want to specify a drive other than the one you're on at the
time of issuing.
That's one reason for using the fully qualified path.
If you leave off the leading \, it will create the file
in a subdirectory called folder from the folder you're in when you call
it up. [Note that I don't think any of these forms will actually create
the folder/directory "records" - they just assume it already exists. I'm
not sure what happens if it doesn't - error message I think.]
Yep.

Personally I wouldn't use ".doc" for the target filename; what it
creates is a text file, so I'd use .txt if I was going to specify an
extension. .doc implies it's going to be a word-processor file (with
fonts, bold, underline, and so on), which it isn't.
I agree. I was using the example that was provided, bad though it was.
 
P

Paul

Gene said:
Be kind: it was only 11 months 17 days :)
I would sit in front of the computer for 11 months 17 days,
waiting for an answer. But not a day longer!

Paul
 
G

Gene E. Bloch

I would sit in front of the computer for 11 months 17 days,
waiting for an answer. But not a day longer!

Paul
Good one! I'm just beginning to clam down from my laughter...

(I thought I was typing "calm", but the typo is weird enough that I
decided to leave it.)
 
C

charlie

Be kind: it was only 11 months 17 days :)
I still haven't figured out how, now and then, old messages seem to
appear out of nowhere as new ones. Do they just ghost around the various
news servers?
 
J

John Williamson

charlie said:
I still haven't figured out how, now and then, old messages seem to
appear out of nowhere as new ones. Do they just ghost around the various
news servers?
I've noticed a lot of the tardy replies come from Google accounts, so
maybe they're coming up on Google searches, and people don't notice the
original post's date?
 
J

J. P. Gilliver (John)

John Williamson said:
I've noticed a lot of the tardy replies come from Google accounts, so
maybe they're coming up on Google searches, and people don't notice the
original post's date?
Sometimes, especially if they're a followup which recommends some piece
of software as a solution to the question originally asked, they're spam
(or whatever the right term is) from the originators of the software in
question. (I don't think that is the case for this thread: I don't have
the first recent post.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top