PDA

View Full Version : Sync from batch file


chrisjj
01-Apr-2009, 02:13 PM
May I say again how fine the BC FTP is? I find it to be just perfect, wiith the exception of some error reporting niggles - amazingly reliable. Thanks.

My Q: What command-line do I put in a batch file to get BC to sync folder A to ftp address B using "Update Sync >>" and no user input?

I have tried /sync but this does not set the operation type nor start the operation.

I would rather avoid teh no-doubt excellent scripting.

Thanks.

Chris
01-Apr-2009, 06:13 PM
Chris,

Sorry, it isn't possible to execute a sync that does not require additional user interaction just using the /sync command line switch. The "/sync" command line switch will make BC open in the "Folder Sync" session but you'll still have to select the type of sync and click the "Sync Now" button to make it start.

To sync without user interaction you'll need to use a script.

Here's an example script:

load folder1 ftp://user@server/folder1
sync update:lt->rt

To run it, use the command line:
bcompare @script.txt

chrisjj
01-Apr-2009, 07:12 PM
OK, thanks.