• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

mass renaming?

NuclearFusi0n

Diamond Member
How can I search a directory for all files with the extension "wv" and automatically change the extension to "flac"?
There are a few hundred files, but only ~100 or so have the extension wv and need to be renamed.
 
Ah. Try one of the programs here. I'm sure it could be done via command line, but one of those programs should be more helpful.
 
name("C:/");

sub name{
$dir = shift @_;
opendir D, $dir;
@files = readdir D;
closedir D;
foreach $file(@files){
if(-d "$dir/$file"){
name("$dir/$file")
}
elsif($file =~ /\.wv$/){
$file =~ s//\.wv$//
rename "$dir/$file.wv", "$dir/$file.flac";
}
}

That should work.
 
Back
Top