Is this homework?
A couple other monks have provided much slicker, one line solutions that you can copy 'n paste...
To answer your specific quesion, you can add print statements to various places in the sub...and perhaps remove bits of code that aren't relivant to your purposes
In reply to Re: List all directories
by mandog
in thread List all directories
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |