This time I'll introduce PowerShell code that disables the read only for all the files in sub folders (Recurse)
The code:
Code should help you, especially you're working with the team system - which locks the files to ReadOnly
Yours,
Roi
The code:
$Path = "your root folder"
$Files = Get-ChildItem $Path -Recurse
ForEach ($File in $Files)
{
Write-Host "File: " $File "IsReadOnly: " $File.IsReadOnly
if ($File.Attributes -ne "Directory" -and $File.Attributes -ne "Directory, Archive")
{
if ($File.IsReadOnly -eq $true )
{
try
{
Set-ItemProperty -path $File.FullName -name IsReadOnly -value $false
write-host "file:" $File.FullName "is now false read only" -foregroundcolor "magenta"
}
catch [Exception]
{
Write-Host "Error at file " $Path "\" $File
Write-Host $_.Exception.Message
}
}
}
}
$Files = Get-ChildItem $Path -Recurse
ForEach ($File in $Files)
{
Write-Host "File: " $File "IsReadOnly: " $File.IsReadOnly
if ($File.Attributes -ne "Directory" -and $File.Attributes -ne "Directory, Archive")
{
if ($File.IsReadOnly -eq $true )
{
try
{
Set-ItemProperty -path $File.FullName -name IsReadOnly -value $false
write-host "file:" $File.FullName "is now false read only" -foregroundcolor "magenta"
}
catch [Exception]
{
Write-Host "Error at file " $Path "\" $File
Write-Host $_.Exception.Message
}
}
}
}
Code should help you, especially you're working with the team system - which locks the files to ReadOnly
Yours,
Roi