# Automatically answer all prompts negatively not to stall # the script on errors option batch on # Disable overwrite confirmations that conflict with the previous option confirm off # Force binary mode transfer option transfer binary # This is the remote directory where you'll upload the files to cd /home/usr/data # For files with spaces in the names, use quotation marks # This is the local file where some of your files to backup are # located lcd "C:\Documents and Settings\UserName\My Documents\" put important_file1.xls put important_file2.txt put "important file with spaces.txt" lcd "C:\Documents and Settings\UserName\My Documents\Another Directory" put important_file3.xls lcd "C:\Documents and Settings\UserName\Application Data\Thunderbird\Profiles\xxxxxxx.default" put abook.mab put history.mab # We zipped this file in the batch file that calls the WinSCP script lcd "C:\Documents and Settings\UserName\Application Data\Mozilla\Firefox\Profiles\xxxxxxx.default" put bookmarks.html.zip # Maybe we want some of the file to go in a subdirectory on the remote # server cd my_subdirectory lcd "C:\Documents and Settings\UserName\My Documents\Important Texts\" put *.txt # cleanup close exit