Customize Zotero toolbar to add a button that will run a backup.bat
I've lost a lot of notes so as a security, I have created a backup.bat that automatically backup my zotero.sqlite every 10 minutes as long as Firefox is open.
But if I use firefox before working on Zotero (Firefox add-on), I often forget to run the .bat.
So I am looking for a way to personalize the toolbar to add a button that will launch the backup.bat
I want to add the button just above the note pane (cf the printscreen: http://i.imgur.com/lyjnv5I.png)
How can I add this button?
Thanks a lot for your help!
------------------------------
For the forum readers who may need it, here is my backup.bat (this one also launch firefox, if you don't want this step just remove the line "start %programName%" )
@echo off
set programName=firefox.exe
start %programName%
:loop
tasklist /FI "IMAGENAME eq %programName%" 2>NUL | find /I /N "%programName%">NUL
if "%ERRORLEVEL%"=="0" copy "C:\Users\Me\Zotero (online DB)\zotero.sqlite" "C:\Users\Me\Zotero_Backup_sqlite\Working_on_zotero_%date%---%time:~0,2%_%time:~3,2%_%time:~6,2%.sqlite"
if "%ERRORLEVEL%"=="1" exit /b
timeout /t 600 /nobreak
goto loop
But if I use firefox before working on Zotero (Firefox add-on), I often forget to run the .bat.
So I am looking for a way to personalize the toolbar to add a button that will launch the backup.bat
I want to add the button just above the note pane (cf the printscreen: http://i.imgur.com/lyjnv5I.png)
How can I add this button?
Thanks a lot for your help!
------------------------------
For the forum readers who may need it, here is my backup.bat (this one also launch firefox, if you don't want this step just remove the line "start %programName%" )
@echo off
set programName=firefox.exe
start %programName%
:loop
tasklist /FI "IMAGENAME eq %programName%" 2>NUL | find /I /N "%programName%">NUL
if "%ERRORLEVEL%"=="0" copy "C:\Users\Me\Zotero (online DB)\zotero.sqlite" "C:\Users\Me\Zotero_Backup_sqlite\Working_on_zotero_%date%---%time:~0,2%_%time:~3,2%_%time:~6,2%.sqlite"
if "%ERRORLEVEL%"=="1" exit /b
timeout /t 600 /nobreak
goto loop