@echo off rem rem S2's BookSync rem rem see http://booksync.mozdev.org/ for more information. rem rem --- editable section --- rem -+- ftp info -+- set ftpserver= set ftpuser= set ftppass= set ftpfile=doc/bookmarks.html rem -+- local file info -+- set localbookdir=C:\Documents and Settings\Application Data\Mozilla\Profiles\default\upmgqcl8.slt\bookmarks.html rem -+- where is mozilla? -+- rem this is not needed at the time set batmozpath=C:\Programmi\mozilla.org\Mozilla\mozilla.exe rem --- end editable section --- set batupordown=down if "%1"=="up" set batupordown=up copy /y %localbookdir%\bookmarks.html %localbookdir%\bookmarks.html.bk > nul echo open %ftpserver% > %temp%\boksynctmp echo %ftpuser%>> %temp%\boksynctmp echo %ftppass%>> %temp%\boksynctmp echo type ascii >> %temp%\boksynctmp if "%batupordown%"=="down" echo get %ftpfile% "%localbookdir%\bookmarks.html" >> %temp%\boksynctmp if "%batupordown%"=="up" echo send "%localbookdir%\bookmarks.html" %ftpfile% >> %temp%\boksynctmp echo quit >> %temp%\boksynctmp ftp -s:%temp%\boksynctmp del /f /q %temp%\boksynctmp > nul goto theendnostuff :theend if "%batupordown%"=="down" %batmozpath% %2 %3 %4 %5 %6 %7 %8 %9 if "%batupordown%"=="down" call %0 up :theendnostuff pause