Change Folder Attributes Recursively

Discuss and share scripts and script files...
Post Reply
yusef88
Posts: 945
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Change Folder Attributes Recursively

Post by yusef88 » 07 Dec 2018 16:56

I'd like to share this script: change selected files and folder attributes recursively
1- set hidden and system attributes

Code: Select all

    attrstamp("sh", 1, "<selitems |>");
    foreach($Token, <selitems |>) {
    if (exists("$Token") == 2) {
    attrstamp("sh", 1, folderreport("items", "r", "$Token", "r", , "|"))
 }};
   #482;
2- Remove hidden and system attributes

Code: Select all

    attrstamp("sh", 4, "<selitems |>");
    foreach($Token, <selitems |>) {
    if (exists("$Token") == 2) {
    attrstamp("sh", 4, folderreport("items", "r", "$Token", "r", , "|"))
 }};
   #482;

Post Reply