Re: Process Directory and subdirectories Recursively



Mimi Cafe wrote:
I am trying to process a directory and all subdirectory recursively and
generate a list as the Unix command "ls -R" will display,

<snip>

The script will finally be used on Windows OS, Unix system command cannot
be used.

print `dir /B /S`;

If you prefer a portable solution, check out the File::Find module.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
.



Relevant Pages