I also found that bookmarks sometimes got lost, and also the custom icon setting. Despite using the export function, sometimes it didn't seem to export the bookmarks properly. So I wrote the following vbscript:
Code: Select all
Dim objWshShell, arrMonths, strCmd
Set objWshShell = CreateObject("Wscript.Shell")
Dim objWshNet
Set objWshNet = CreateObject("WScript.Network")
arrMonths = Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec")
strCmd = "regedit /e ""%UserProfile%\Documents\Xplorer2\HKCU Xplorer2 " & objWshNet.UserDomain & " "
strCmd = strCmd & Day(Now) & arrMonths(Month(Date) - 1) & Right(Year(Date), 2) & ".reg"""
strCmd = strCmd & " ""HKEY_CURRENT_USER\Software\ZabaraKatranemia Plc"""
objWshShell.Run strCmd, 1, True
MsgBox "Xplorer2 settings saved"
This saves the current settings regardless of whether X2 is running to a file with the current date, just change the target folder in line 6. It reliably saves the favorites and favorite_icons.
I later found that part of the issue was that I was using the red x button to close X2, rather than the Alt+X keys (thanks to Nikos). The red X doesn't close the instance, just closes the window, Alt+X closes the instance. This fixed most of the restore settings not working issues I had, but I still use the above script so that I get several settings backups so I can go back more than one save if I need to.
I also found that sometimes X2 would reset my favorites and icons (I don't know why), but when I imported the saved settings file (with X2 closed using Alt+X, not the X in the top right corner), it would add the saved settings to the "new" default settings. This caused multiple entries for the same folders and the imported ones wouldn't work. Check Bookmarks, Organise and make sure there are no duplicates. Because of this, before restoring my settings I also delete everything under the HKEY_CURRENT_USER\Software\ZabaraKatranemia Plc key.
Cheers