Solved

Vbscript to switch off the Read Only attribute of some files?

Posted on 2011-03-01
3
350 Views
Last Modified: 2012-08-14
Hi Experts,

I have a folder in which a few files have the Read Only attribute set.
The attribute is preventing a synchronization tool from updating those files.

I need a script that will switch off the Read Only attribute.

Thanks,

Regards,
Leigh
0
Comment
Question by:LeighWardle
  • 2
3 Comments
 
LVL 65

Accepted Solution

by:
RobSampson earned 500 total points
ID: 35014486
The DOS command should do it:
attrib -r *.*

Regards,

Rob.
0
 
LVL 1

Author Closing Comment

by:LeighWardle
ID: 35014584
Thanks, Rob.

Cheers,
Leigh
0
 
LVL 65

Expert Comment

by:RobSampson
ID: 35014586
No problem.

Rob.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to writing scripts for a Client/Server computing environment it is essential to consider some way of enabling the authentication functionality within a script. This sort of consideration mainly comes into the picture when we are dealin…
This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question