Hi Everyone,
I thank all who have taken the time to try and help me, however none of the above options worked.
I have now though found how to backup and restore all lost tabs from session data related to the use of Windows 11 Notepad.
Follow the below instructions, it worked perfectly for me. Please remember though, if you find yourself in the same position as I did, do not try to reset or perform a clean installation on Windows, until you have copied the full contents of your 'Users' folder on the main system drive, usually the C: drive. If like me, you can only access your system from the recovery command window, you can use the 'robocopy' command to do this easily. Search online for command usage if you are not sure, it is very simple.
Additionally, I also copied the 'Windows', 'Programs' and 'Programs (x86)' folders which has proven useful for other app restores.
Instructions:
To restore or view a Windows 11 Notepad tabstore .bin file, you need to locate the "TabState" and "WindowState" folders within the "LocalState" folder in your user's AppData directory. You can then copy these folders to restore your Notepad notes and tabs.
- Locate the TabState and WindowState folders: Open File Explorer and navigate to C:\Users\USERNAME\AppData\Local\Microsoft\WindowsNotepad_randomcharacters\LocalState.
Replace "USERNAME" with your actual Windows username.
You'll find the "TabState" and "WindowState" folders within the "LocalState" folder.
- Restore your notes and tabs: If you have a backup of these folders, copy them to the corresponding location on your current computer.
If you're trying to restore from a previous version or a backup, you may need to delete the existing "TabState" and "WindowState" folders in the current location before copying the backed-up ones.
NOTE:
My location was slightly different to the above, it may depend on your version and or revision of Windows 11 as to the exact location, so just search for the above folders, it is much easier.
I found them located at: "\Users\USERNAME\AppData\Local\Packages\Microsoft.WindowsNotepad_8wekyb3d8bbwe\LocalState"
Simply delete these folders on your new clean installation of Windows 11, then copy your original folders as detailed above to that same location. You will see a lot of .bin files, the amount will depend on how much you have used notepad and how many tabs you had open.
You can now run Notepad and like magic, all your tabs will be there waiting for you.
Hope this is helpful.