in reply to find instances of a file without knowing specific path
- Milleruse File::Find; my $dir = 'C:\Documents and Settings'; my $from = 'abc.lnk'; my $to = 'def.lnk'; find(sub { if ($_ eq $from) { print "$File::Find::name -> $to\n"; rename($_, $to); } }, $dir);
|
|---|