I'm trying to set a few files to writable, but I'm having an issue. I have tried using:
$file = "path/to/my/file.dat"
$file = Get-Item $file
$file.IsReadOnly = $false
As well as everything listed here:
How to Remove ReadOnly Attribute on File Using PowerShell?
But it still isn't working, at least I don't think it is because when I check the file properties the 'Read-Only' box is still checked:
UPDDATE::
When I run:
$file.isReadOnly
it returns $false
, but the box below is explicitly checked? Are these two different things?
I'm wondering what I'm doing wrong, or how to make it so this file is editable.