in reply to How to identify a file is in readonly mode

Since you are on Windows, use the Win32::File (bundled with ActiveState perl) CreateFile interface. Set svShare to zero.
  • Comment on Re: How to identify a file is in readonly mode