On Sat, 28 Nov 2009 09:45:56 +0100, Ray_Net <[email protected]> in mozilla.support.seamonkey wrote:
>Richard Lane wrote: >> Occasionally sm 1.1.9 performs an "illegal operation" and has to be >> closed, when this happens my bookmarks.html file is reduced to 1kb i/o >> 140kb and the contents lost. Is there a way to preserve the contents of >> this file with say a single stroke so that at worst only that day's >> bookmarks are lost? The relevant file path seems to be: >> C:\Documents and Settings\Richard Lane\Application >> Data\Mozilla\Profiles\default\3gzpjw8f.slt\bookmarks.html >> > >Create a batch file "startSM.bat" and run it to start SM: >This batchfile will: >1. copy the file C:\Documents and Settings\Richard Lane\Application >\Data\Mozilla\Profiles\default\3gzpjw8f.slt\bookmarks.html >somewhere else. >2. start SM >3. exit > >Now you have the choice to start SM by this batchfile, when you know >that the bookmark is OK, or > >if the bookmark is not ok: >Create and run "startOK-SM.bat" that will: >1. copy from somewhere else the correct bookmarks.html file into >C:\Documents and Settings\Richard Lane\Application >\Data\Mozilla\Profiles\default\3gzpjw8f.slt\bookmarks.html >2. start SM >3. exit Nice solution............ Reading your solution I realized that in my suggestion i left out the "restore" module of the .bat where arg 1 (&1) would be the word "restore" and an initial check that IF .&1 == .restore then go to the restore module. (also, in case a bad copy has been saved as a backup, i would suggest setting up a rotation of, say, 3 additional backups suffixed sav1,sav2,sav3, which would require use of the "if exist" parm and rename and delete cmds.)[1] [1]That means that &2 will need to be sav | sav1 | sav2 | sav3 and possibly default on <blank> to sav1 OR that could be an argument of the restore module which would then require interactive execution. Surely i left something out.............. jim _______________________________________________ support-seamonkey mailing list [email protected] https://lists.mozilla.org/listinfo/support-seamonkey

