Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
running iwextattr
khan
Is there a way to run iwextattr on a whole directory? I've tried this, and it seems that it gets only about the first 4 or 5 files of a directory, and the rest are left untouched. What am I missing?
Find more posts tagged with
Comments
Migrateduser
iwextattr is designed to only work on a single file at a time (just look at the -h output to see).
It would be relatively easy to write a perl script that would open a directory and then read all of the files in to extract the Extended Atributes (EAs) on a list of files. It might also be possible to write something in OpenAPI that would do the same sort of thing (there is an api function that would retrieve the EAs).
As for being able to open a directory and then read all of the EAs using iwextattr alone, maybe this would make a good Feature Request.
dirk
Hi Nacks,
you can use the attached scripts tho extract and reapply the ext attr.
just call:
Save attributes:
\iw-home\bin\iw-perl\iwperl saveattr.ipl
Y:\default\main\branch\WORKAREA\wa > C:\TEMP\saved_attributes.txt
--------
Note: Please make sure you capitalize "Y:\".
Reapply:
\iw-home\bin\iw-perl\iwperl setattr.ipl < C:\TEMP\saved_attributes.txt
Cheers
Dirk
reeturaj
After we retrieve the text file containing the extended attributes, we change it manually since we are changing the categories. Then we apply setattr.ipl to update the extended attributes. But the update is not working. The original extended attributes still remain.
Appreciate your response