REM This is the BAT file that we'll run in Windows. REM It will compress a bigger file, upload all the selected REM file to the remote server, and clean up the compressed file REM Set some variables for locations to which we will refer in this REM script. set scp_script_dir="C:\Documents and Settings\UserName\My Documents\Backup Scripts" set bookmarks_dir="C:\Documents and Settings\UserName\Application Data\Mozilla\Firefox\Profiles\xxxxxxx.default" REM zip the larger files using 7-zip cd %bookmarks_dir% 7z a -tzip bookmarks.html.zip bookmarks.html REM Call the WinSCP script with the necessary login info and you REM will be prompted for a password. winscp3 /console /script=%scp_script_dir%"\winscp_script.txt" your_login@your_server.com REM Cleanup the zip files that we made. cd %bookmarks_dir% del bookmarks.html.zip :END