TStanley has asked for the wisdom of the Perl Monks concerning the following question:
This is being done with ActiveState Perl 5.6 Build 626 on a Windows 95 system.#!C:\Perl\bin\perl -w use strict; use File::Slurp; use Win32::File; use MP3::ID3v1Tag; my @Directories=("C:\\MP3Disc1","C:\\MP3Disc2","C:\\MP3Disc3","C:\\MP3 +Disc4"); my $Dir; my @Files; my $File; my $attr; my $path; my $MP3; foreach $Dir(@Directories){ @Files=read_dir($Dir); foreach $File(@Files){ $path=$Dir."\\".$File; Win32::File::GetAttributes($path,$attr); Win32::File::SetAttributes($path,$attr|NORMAL); $MP3=new MP3::ID3v1Tag($path); my($artist,$title)=split " - ",$File; $MP3->set_artist($artist); $MP3->set_title($title); $MP3->save(); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Problem with ActiveState's Win32::File module
by tye (Sage) on Jul 31, 2001 at 05:32 UTC | |
|
Re: Problem with ActiveState's Win32::File module
by John M. Dlugosz (Monsignor) on Jul 31, 2001 at 06:33 UTC | |
|
Re: Problem with ActiveState's Win32::File module
by bikeNomad (Priest) on Jul 31, 2001 at 05:37 UTC | |
by John M. Dlugosz (Monsignor) on Jul 31, 2001 at 06:35 UTC | |
|
Re: Problem with ActiveState's Win32::File module
by eejack (Hermit) on Jul 31, 2001 at 06:37 UTC | |
|
Re: Problem with ActiveState's Win32::File module
by earthboundmisfit (Chaplain) on Jul 31, 2001 at 06:06 UTC |