Cannot SET the Read-Only attribute


nurbles

Member
Local time
11:21 PM
Posts
4
Location
Rockledge, Florida, USA
OS
Windows 11 Pro
I have been using an [admittedly antique now] version control package for the past 20+ years (named QVCS). Roughly two weeks ago, it suddenly started reporting errors that I tracked down to its new inability to set a file's Read-Only bit when it is checked in. I'm currently manually fixing the read-only bits of files I check in, but I really want it to work correctly, as it has been doing on all versions of Windows since Windows 2000.

I've tried searching online, but I'm overwhelmed with hits about the exact opposite problem from people who cannot remove the read-only bit. In case they were related, I've tried several solutions, such as this command sequence in an administrator command prompt:

Code:
DISM.exe /Online /Cleanup-image /StartComponentCleanup
DISM.exe /Online /Cleanup-Image /Restorehealth
SFC /SCANNOW

After rebooting, the issue remains. My biggest confusion is why only a single program would be affected by whatever is happening -- but I'm not really sure about that, because I don't have any programs that make things read-only. In fact, only ATTRIB from a command line and Windows File Explorer, both of which work fine.

Can (will?) anyone offer any suggestions about what could be behind this? Thanks!
 
Windows Build/Version
Windows 11 Pro Version 24H2 Installed on 11/6/2024 OS Build 26100.4061 Windows Feature Experience Pack 1000.26100.84.0

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell OptiPlex 7010
    CPU
    12th Gen Intel Core i9-12900K @ 3.20GHz
    Motherboard
    Dell 02J54D vA01
    Memory
    64 GB
    Graphics Card(s)
    Intel UHD Graphics 770
    Sound Card
    Realtek Audio
    Monitor(s) Displays
    LG HDR 4K, ViewSonic VA2855, Dell 1908FP
    Screen Resolution
    3840x2160, 1080x1920, 1280x1024
    Hard Drives
    ST4000DM0004-2U9104 (4TB), KINGSTONSNV2S4000G (4TB), ADATALEGEND800 (2TB)
    PSU
    Dell
    Case
    Dell
    Cooling
    Fans
    Keyboard
    Unicomp
    Mouse
    Microsoft USB
    Internet Speed
    500Mb/s In, 500 Mb/s Out
    Browser
    Edge, Firefox, Mullvad, Brave, Chrome, Palemoon
    Antivirus
    ESET Security Ultimate
This probably isn't a problem fixed with DISM.

Check if Controlled Folder Access has been enabled by mistake.
 

My Computer

System One

  • OS
    Windows 7
Thanks for the tip about Controlled Folder Access. Unfortunately, I am using ESET and not Windows Defender, and I have not enabled the ESET Folder Guard, which does the same function.

I have also written a test program and confirmed that I don't have any problem changing the read-only flag from my own code. So far, it appears that only the one program is being affected, and only when trying to SET the read-only flag. QVCS is not having a problem CLEARING the read-only flag when I check a file out.

When I'm seeing in its log isn't especially helpful to me, but maybe someone here will have an idea. It is logging this message (twice) just before displaying the error message about check-in failure:

Caught unknown exception in LogFileOperationCheckIn

Clearly the last thing there is one of the QVCS functions, but since the check-in succeeds in everything except marking the file read-only, I can only assume that, after 20+ years of working fine, it is suddenly getting an exception when trying to change the file attribute to include the read-only bit. Since I KNOW that the program hasn't changed, what could've changed in Windows to cause this?
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell OptiPlex 7010
    CPU
    12th Gen Intel Core i9-12900K @ 3.20GHz
    Motherboard
    Dell 02J54D vA01
    Memory
    64 GB
    Graphics Card(s)
    Intel UHD Graphics 770
    Sound Card
    Realtek Audio
    Monitor(s) Displays
    LG HDR 4K, ViewSonic VA2855, Dell 1908FP
    Screen Resolution
    3840x2160, 1080x1920, 1280x1024
    Hard Drives
    ST4000DM0004-2U9104 (4TB), KINGSTONSNV2S4000G (4TB), ADATALEGEND800 (2TB)
    PSU
    Dell
    Case
    Dell
    Cooling
    Fans
    Keyboard
    Unicomp
    Mouse
    Microsoft USB
    Internet Speed
    500Mb/s In, 500 Mb/s Out
    Browser
    Edge, Firefox, Mullvad, Brave, Chrome, Palemoon
    Antivirus
    ESET Security Ultimate
Does it let you enable some kind of stack trace, so you can see where it's failing?
 

My Computer

System One

  • OS
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC12WSHi7
    CPU
    12th Gen Core i7-1260P
    Motherboard
    NUC12WSBi7
    Memory
    64 GB Micron PC4-25600
    Graphics Card(s)
    Intel Iris Xe Graphics
    Sound Card
    on-board Realtek HD Audio
    Monitor(s) Displays
    Dell U3219Q
    Screen Resolution
    3840 x 2160
    Hard Drives
    Samsung SSD 990 PRO 1TB
    Crucial MX500 2 TB
    Antivirus
    Microsoft Defender
You could try uninstalling the last Windows Update (May 2025?), to see if it's a compatibility issue.
 

My Computer

System One

  • OS
    Windows 7
@pseymour No, it does not include any debugging features other than the activity log where I found that one error message reported twice with the same time stamp.

@garlin Frankly, uninstalling a Windows update kinda of terrifies me. This is my primary work computer and, due to the size of the drives a complete backup will take something like 60+ hours. Hopefully there may be other ideas before I need to try something that difficult.
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell OptiPlex 7010
    CPU
    12th Gen Intel Core i9-12900K @ 3.20GHz
    Motherboard
    Dell 02J54D vA01
    Memory
    64 GB
    Graphics Card(s)
    Intel UHD Graphics 770
    Sound Card
    Realtek Audio
    Monitor(s) Displays
    LG HDR 4K, ViewSonic VA2855, Dell 1908FP
    Screen Resolution
    3840x2160, 1080x1920, 1280x1024
    Hard Drives
    ST4000DM0004-2U9104 (4TB), KINGSTONSNV2S4000G (4TB), ADATALEGEND800 (2TB)
    PSU
    Dell
    Case
    Dell
    Cooling
    Fans
    Keyboard
    Unicomp
    Mouse
    Microsoft USB
    Internet Speed
    500Mb/s In, 500 Mb/s Out
    Browser
    Edge, Firefox, Mullvad, Brave, Chrome, Palemoon
    Antivirus
    ESET Security Ultimate
Is this one executable or a set of them? One thing you can try is to go under File Properties, and run it in Compatibility mode for W7.
 

My Computer

System One

  • OS
    Windows 7
@garlin I'm pretty sure that it is a graphical shell for a set of individual CLI executables. I had already tried setting the shell to W7 compatibility, though I'm not sure why it should need that since it had been working fine on Windows 11 since 2019. But I tried anyway, in case MS made a breaking change to W11 (which would be a big surprise for something this fundamental.)

I'm probably going to be forced to try uninstalling the last Windows update as you suggested. I guess it is time to start making a full image backup of my boot drive. Sigh. Thanks for the suggestions! I was hoping this was something others had already encountered and found a solution, but alas, I seem to be unique this time. Oh well, it was worth a shot, right? :-)
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell OptiPlex 7010
    CPU
    12th Gen Intel Core i9-12900K @ 3.20GHz
    Motherboard
    Dell 02J54D vA01
    Memory
    64 GB
    Graphics Card(s)
    Intel UHD Graphics 770
    Sound Card
    Realtek Audio
    Monitor(s) Displays
    LG HDR 4K, ViewSonic VA2855, Dell 1908FP
    Screen Resolution
    3840x2160, 1080x1920, 1280x1024
    Hard Drives
    ST4000DM0004-2U9104 (4TB), KINGSTONSNV2S4000G (4TB), ADATALEGEND800 (2TB)
    PSU
    Dell
    Case
    Dell
    Cooling
    Fans
    Keyboard
    Unicomp
    Mouse
    Microsoft USB
    Internet Speed
    500Mb/s In, 500 Mb/s Out
    Browser
    Edge, Firefox, Mullvad, Brave, Chrome, Palemoon
    Antivirus
    ESET Security Ultimate
Well, you're using a VCS from 15 years ago. :)
 

My Computer

System One

  • OS
    Windows 11 Pro 25H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC12WSHi7
    CPU
    12th Gen Core i7-1260P
    Motherboard
    NUC12WSBi7
    Memory
    64 GB Micron PC4-25600
    Graphics Card(s)
    Intel Iris Xe Graphics
    Sound Card
    on-board Realtek HD Audio
    Monitor(s) Displays
    Dell U3219Q
    Screen Resolution
    3840 x 2160
    Hard Drives
    Samsung SSD 990 PRO 1TB
    Crucial MX500 2 TB
    Antivirus
    Microsoft Defender

Latest Support Threads

Back
Top Bottom