I’ve found a much better solution. As it stands you can do one of two things:
- Use a script to modify permissions.
- Manually mark the files as read-only.
However, there are some issues with this.
- Has to be done before you start the game from the Bnet app. Due to the Bnet app fixing permissions on launch.
- Start the game from wow.exe which means manually logging in.
Neither of these are ideal to me:
- I have to run a script to lock files if I want to login automatically from bnet.
- I have to manually login if I don’t use the bnet app that fixes permissions.
Instead you can do the following:
- Open Windows Security
- Click Virus and Threat protection
- Scroll to Virus and Threat protection Settings
- Click Manage settings
- Scroll to Controlled folder access
- Click Manage controlled folder access
- Click Add a protected folder.
Controlled Folder access locks down folders and files to applications unless you directly open them yourself. As such, the folder is locked by Windows. This prevents the logs from ever being touched. And in turn means the manual work arounds are no longer needed. You can continue to use other applications as normal. Only the folders listed in the settings will be locked down. Which means nothing else will be affected.
I have been using this all day.