title: how to remove write protection of a file via cmd or VBA?
body: <p>i'm coding a macro for word and excel. The output are generated files that should be saved.
  Since those files already exist and are write protected, I somehow have to remove the protection. I found a unprotect function in excel but it doesn't really work.
  I also didn't find any command for unprotecting via cmd o0</p>
  
  <p>I thought about deleting the files before saving the new ones.
  But I'd like to find a solution for unprotecting.</p>