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

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
LVL 1
LeighWardleAsked:
Who is Participating?
 
RobSampsonConnect With a Mentor Commented:
The DOS command should do it:
attrib -r *.*

Regards,

Rob.
0
 
LeighWardleAuthor Commented:
Thanks, Rob.

Cheers,
Leigh
0
 
RobSampsonCommented:
No problem.

Rob.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.