File:  [mozdev] / booksync / www / booksync.bat
Revision 1.6: download - view: text, annotated - select for diffs - revision graph
Wed May 21 15:46:52 2003 UTC (14 years, 5 months ago) by simon
Branches: MAIN
CVS tags: HEAD
*** empty log message ***

@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=<your ftp server>
set ftpuser=<ftp user>
set ftppass=<ftp password>
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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>