×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

recursive directory listing

recursive directory listing

recursive directory listing

(OP)
How can I do a recursive directory listing for a directory on my windows machine.

I have this directory called stuff, and under stuff I have a bunch of other stuff, folders and files.  I want to be able to go inside the top directory stuff, and list all the other stuff under it recursively, until there aren't anymore stuff to list.  How do i get started.

Do I have to use the opendir function or can I use something else, that's more effective and more efficient?

RE: recursive directory listing

Didn't you just ask this question last week?  Why not continue that thread?

Sincerely,

Tom Anderson
CEO, Order amid Chaos, Inc.
http://www.oac-design.com

RE: recursive directory listing

(OP)
I can't find it...

RE: recursive directory listing

(OP)
gee thanks...  I haven't been on for a while been in the sick bed for a while.  Im better now and am continuing my projects Im working on.  Thanks again...

RE: recursive directory listing

Try this:
print `dir /S/B/AD`;

RE: recursive directory listing

(OP)
what does /S/B/AD do?

RE: recursive directory listing

dir is a DOS command.  /s enters subdirectories.  Type dir /? for more info about the switches.

I wouldn't suggest using a DOS command for this problem.  Better to use Perl's functions.  Have you tried the solutions proposed in your earlier thread?  If so, why were they not satisfactory?

Sincerely,

Tom Anderson
CEO, Order amid Chaos, Inc.
http://www.oac-design.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close