From time to time my Textpad 9.6.1 loses its settings - I cannot see what causes that.
Can someone explain that?
(Woly)
Lost settings
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Re: Lost settings
TextPad saves its settings in this file:
In case that file is on a bad sector of your disk, you should check for bad sectors as follows:
Code: Select all
%APPDATA%\Helios\TextPad\9\ConfigState.xml
- Start File Explorer
- Open This PC
- Right click C:
- Choose Properties
- Click the Tools tab.
- Click the Check button.
-
- Posts: 11
- Joined: Wed Jan 27, 2016 12:55 pm
Re: Lost settings
My disk is okay. Thats not the reason. Must be something different.
Yesterday it happened again: Started TextPad and it came with "Liesmich.txt" (readme.txt). Then I took a short look at my settings and they were all set to defaults (the general checkboxes, the file settings, tabstops..)
What can cause that?
Yesterday it happened again: Started TextPad and it came with "Liesmich.txt" (readme.txt). Then I took a short look at my settings and they were all set to defaults (the general checkboxes, the file settings, tabstops..)
What can cause that?
Re: Lost settings
The only way that can happen is if ConfigState.xml has been deleted. When TextPad detects that it does not exist, it recreates it with default settings, which causes it to open the selected language version of Readme.txt.
You can enable monitoring of file deletion in a folder using auditing as follows:
1. Enable File System Audit Policy:
3. View the Auditing Log:
https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4660
I hope this helps.
You can enable monitoring of file deletion in a folder using auditing as follows:
1. Enable File System Audit Policy:
- Display the Windows Run dialog using Windows Key + R.
- Type "gpedit.msc" and click OK.
- Select Windows Settings » Security Settings » Advanced Audit Policy Configuration » System Audit Policies » Object Access
- Double click "Audit File System" and check Configure and Success.
- In the Windows Run command, type "gpupdate /force"
- Right-click on the folder "%APPDATA%\Helios\TextPad\9" and choose "Properties."
- Go to the "Security" tab and click on the "Advanced" button.
- Switch to the "Auditing" tab and click on the "Add" button.
- In the "Select a principal" dialog, type "Everyone" and click "Check Names" then "OK."
- Click on "Advanced" to reveal all the options to monitor, including "Delete".
- Select the actions "Delete subfolders and files" and "Delete", and then click "OK."
3. View the Auditing Log:
- Open the Event Viewer, from the Windows key + X menu.
- Navigate to "Windows Logs" » "Security" in the Event Viewer.
- Choose the Find Action and search for "4660", for deleted files.
https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4660
I hope this helps.
-
- Posts: 11
- Joined: Wed Jan 27, 2016 12:55 pm
Re: Lost settings
I enabled auditing as described, but in Event Viewer there is no entry 4660 logged even if I delete a file (for testing).
Re: Lost settings
Sorry, I already had File System Audit Policy enabled so I forgot to document that step. I have updated my post to explain how to do that.
In step 2, make sure to select both actions "Delete subfolders and files" and "Delete".
I tested it to make sure it works by deleting a file with Windows File Explorer and was surprised to see that the event is 4659, which is undocumented. However, when deleting it using TextPad's Manage Files command, the event is 4660 with an associated event 4663. Those events show which process was responsible.
In step 2, make sure to select both actions "Delete subfolders and files" and "Delete".
I tested it to make sure it works by deleting a file with Windows File Explorer and was surprised to see that the event is 4659, which is undocumented. However, when deleting it using TextPad's Manage Files command, the event is 4660 with an associated event 4663. Those events show which process was responsible.
-
- Posts: 11
- Joined: Wed Jan 27, 2016 12:55 pm
Re: Lost settings
Okay - now that works fine. Thanks!