Bulk Changing File Attributes

Discuss and share scripts and script files...
Post Reply
WordBaron
Posts: 30
Joined: 29 Jun 2008 08:20

Bulk Changing File Attributes

Post by WordBaron »

Please forgive me if I'm missing something, but I don't see anything in the scripting list that would allow me to change file attributes. (I've done a search on the forum here but it seems like the "file attributes" or "file properties" searches don't operate as complete terms making it hard to find anything specific.) Is there any way to change file attributes via XYPlorer scripting, and furthermore, is it possible to bulk change such attributes? I don't think the ability is possible via the interface either, let alone scripting.

Just Wondering,
Word Baron

admin
Site Admin
Posts: 66254
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Bulk Changing File Attributes

Post by admin »

WordBaron wrote:Please forgive me if I'm missing something, but I don't see anything in the scripting list that would allow me to change file attributes. (I've done a search on the forum here but it seems like the "file attributes" or "file properties" searches don't operate as complete terms making it hard to find anything specific.) Is there any way to change file attributes via XYPlorer scripting, and furthermore, is it possible to bulk change such attributes? I don't think the ability is possible via the interface either, let alone scripting.

Just Wondering,
Word Baron
It is possible via the interface as long as your bulk is listed in the file list (as contents of one folder, or as search results):
(1) Select all items (in the List) you want to touch.
(2) Open the Info Panel (F12), tab "Properties".
(3) Ensure that (any) one of the selected items is now displayed on that tab (in order to have the Attributes checkboxes visible).
(4) Now you can change the Attributes and then click the green "Plus" icon which will appear near the Attributes checkboxes . Changes will apply to all selected items.

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Post by j_c_hallgren »

If that process isn't yet in wiki (haven't checked), it would be a good thing to clarify/add, and maybe add to FAQ thread also.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Post by serendipity »


TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Post by TheQwerty »

No, there currently is no way to change attributes via scripting solely within XY.

What you can do is use scripting to execute attrib on the files, as you would from a command prompt. Which I did in this script.

Post Reply