SW macro to toggle a SW files windows read only attribute

Is it possible to have a SW macro to toggle a SW files windows read only  attribute?  Basically can a macro check and uncheck the read only state  in Windows?  We keep our fasteners as read only in Windows but  occasionally we have to edit them so we have to browse to the file right  click and uncheck "read only".  When done editing we have to recheck  "read only".  Trying to condense that down to only having to click a  macro once we have the file open.

SolidworksApi macros