Re: Looking for a freeware command line tool that can make a program perform recursive functions on a complete folder tree

Tech-Archive recommends: Speed Up your PC by fixing your registry



Mike Matheny wrote:
Looking for a freeware command line tool that will let me run a program on
every file I select throughout a complete folder structure - found a program
named Global doing a search on the internet, but can't find the program!

As stated in a previous thread:
#!C:/Perl/bin/perl.exe
use File::Find;
$dir = "c:/some/dir";
find(\&dostuff, $dir);

This will enumerate recursively (and pretty fast) all the files in
c:\some\dir and for each one execute the dostuff procedure which gets
the file name in $_
.