Hi All,I am new to PERL.My requirement is, i need to set extended atributes for al the DCR's of each data types in a Branch.Any sample code to traverse through all DCR's in 'data' folder of each datatype.datatypes list attached.Regards,Anil
use strict;use warnings;use File::Find;(my $iwhome = TeamSite::Config::iwgethome()) =~ tr|\\|/|;my $folderPath= "Y:/default/main/Sub-Branch/WORKAREA/Inetpub/templatedata";&File::Find::find(\&getFiles,$folderPath);sub getFiles { if ( (-f $File::Find::name) && ($File::Find::name =~ /$folderPath/) ) { my $filename= $File::Find::name; my $setLanguage= `$iwhome/bin/iwextattr -s TeamSite/Metadata/language=English $filename 2>&1`; }}
Hi All,I am new to PERL.
Yeah someone who is new to perl should find that handy.
Hey, he answered the question, iterating through the DCRs. Even showed how to set an EA.What EA needs to be set ? No clue. But I think the code provided is a big step, esp if he can hard code the EAs