Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

I do not see anything wrong about your command.

Anyway, for a very basic test, can you execute following command in the Windows shell?
winscp.com /ini="%WINSCP_HOME%winscp.ini" /log=mylog.xml /command "open RPSSync"
Check if mylog.xml is xml or plain text.
srthomas

Hi,

Sorry that was a typo, I have given the argument to the log parameter as an xml file. It doesn't produce a xml file - only a text "normal" file.

Can you give me some ideas on this as I'm going to need to parse the xml file to get the list of directories to synchronise?

Thanks
martin

Re: Help with Synchronize and XML log

srthomas wrote:

My script command line shows the following:
start /min "VideoSync Tool" "%WINSCP_HOME%winscp.com" /ini="%WINSCP_HOME%winscp.ini" /log="%LOG%" /command "open RPSSync" "option batch continue" "option confirm off" "option include */;%YEAR%-%MONTH_NOW%-*;" "synchronize local %LOCAL_DIR%" "exit"


I can't get the include to work ... any ideas?

You cannot do this with include mask. I think that only solution is to generate script with list of directories to synchronize.

Also, I'm running WinSCP Version 4.2.7 (Build 758) (OS 5.1.2600 Service Pack 3) but when changing the log file to an xsml extension it doesn't write xml only standard log info.

xsml? it is typo? or have you indeed tried xsml, it should be xml.
srthomas

Help with Synchronize and XML log

Hi,

I need some help on this as I just can't get it. Some background, remote server via FTP, has directories like:
data/Cardiff/2010-05-06/
data/Cardiff/2010-04-02/
data/Cardiff/2009-05-06/
data/London/2009-05-06/
data/Edinburgh/2010-02-06/

The list of cities is dynamic so I don't know in advance what they will be
etc.

I need to sync to local machine only the current month and previous month folders, of the above only:
data/Cardiff/2010-05-06/
data/Cardiff/2010-04-02/

My script command line shows the following:
start /min "VideoSync Tool" "%WINSCP_HOME%winscp.com" /ini="%WINSCP_HOME%winscp.ini" /log="%LOG%" /command "open RPSSync" "option batch continue" "option confirm off" "option include */;%YEAR%-%MONTH_NOW%-*;" "synchronize local %LOCAL_DIR%" "exit"


I can't get the include to work ... any ideas?

Also, I'm running WinSCP Version 4.2.7 (Build 758) (OS 5.1.2600 Service Pack 3) but when changing the log file to an xsml extension it doesn't write xml only standard log info.