Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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)


Topic review


Re: scripting/automation - no xmllog and timeout not working

For /timeout: It applies to sessions opened from command-line arguments. You do not have that. Use -timeout switch of the open command.

I can't speak for the "timeout" switch, but "xmllog" was only introduced in v5.x beta versions.

scripting/automation - no xmllog and timeout not working

1) Using /timeout=<sec> does not set timeout to provided value
2) Specifying /xmllog=<file> does not produce xml log

I am using version 4.3.5 (Build 1463)

Command line:
"C:\Program Files\WinSCP\" /script=WinSCP_ini.txt /xmllog=WinSCP_xmllog.txt
---> Does _not_ produce an XML log

"C:\Program Files\WinSCP\" /script=WinSCP_ini.txt /log=WinSCP_xmllog.txt
---> Produces a regular log

"C:\Program Files\WinSCP\" /script=WinSCP_ini.txt /log=WinSCP_xmllog.txt /timeout=45
---> does _not_ set timeout to 45 seconds. From the log file:
. 2012-02-04 08:03:54.334 Host name: <name> (Port: 22)
. 2012-02-04 08:03:54.334 User name: <user> (Password: Yes, Key file: No)
. 2012-02-04 08:03:54.334 Tunnel: No
. 2012-02-04 08:03:54.334 Transfer Protocol: SFTP (SCP)
. 2012-02-04 08:03:54.334 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2012-02-04 08:03:54.334 Proxy: none

Cheers - Michael