Re: Possible bug when generating xml-logfile
Yes, the
!P
should help.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
!P
should help.
winscp.com /log="D:\path\FTP_log\winscp_!S_!Y!M!D_!T.xml" /ini=nul /script=D:\path\winscp_script.txt
_!P
, would that do the trick?:
winscp.com /log="D:\path\FTP_log\winscp_!S_!P_!Y!M!D_!T.xml" /ini=nul /script=D:\path\winscp_script.txt
winscp.com
generates xml-log-file, I get xml-syntax-error...
winscp.com /log="D:\path\FTP_log\winscp_!S_!Y!M!D_!T.xml" /ini=nul /script=D:\path\winscp_script.txt
option batch continue
option confirm off
open sftp://user:pass@host.com:22/ -hostkey="ssh-ed25519=" -timeout=30 -rawsettings FSProtocol=2 ProxyMethod=2 ProxyHost="??.???.??.???" ProxyPort=???? ProxyUsername="user" ProxyPassword="****"
put D:\path\READY_4_TRANSFER\*.pdf ./2path_xml/
put D:\path\READY_4_TRANSFER\*.xml ./2path_xml/
close
exit
<?xml version="1.0" encoding="UTF-8"?>
<session xmlns="http://winscp.net/schema/session/1.0" name="SESSIONNAME" start="2021-05-11T15:33:50.916Z">
</session>
<filename value="D:\StreamServe\invoice_EDI_copies_PROD\READY_4_TRANSFER\F1537056_20210511-172709_GL.pdf" />
<destination value="/2path_xml/F1537056_20210511-172709_GL.pdf" />
<result success="true" />
</upload>
<touch>
<filename value="/2path_xml/F1537056_20210511-172709_GL.pdf" />
<modification value="2021-05-11T15:27:10.000Z" />
<result success="true" />
</touch>
</session>
<upload>
is missing... it looks like it is replaced with </session>.
</session>
should only exist once...