title: Testing for file attribute in batch file
body: <p>I'm writing a batch file and I need to know if a file is read only. How can I do that ?</p>
  
  <p>I know how to get them using the %~a modifier but I don't know what to do with this output. It gives something like -ra------. How can I parse this in batch file ?</p>