WinSCP - How to recognize if file was transferred successfully

前端 未结 3 1408
逝去的感伤
逝去的感伤 2021-01-16 04:33

I\'m using WinSCP to automatically upload files through SFTP. I have turned on debug log on level 1. Is it possible to find out if the file was uploaded successfully? Thank

3条回答
  •  孤独总比滥情好
    2021-01-16 04:51

    Below,is the batch file I use to accomplish a sync from an ftp server to a local directory, deleting any changes on the local side.The batch file also saves a XML log of all transfers.

    @echo off
    cd %programfiles(x86)%\winscp\
    start /b winscp.exe /log="C:\Sync\logs\!M-!D-!Y@!T.xml" /xmlgroups /command "open   ftp://username:password@ftp.foo.com" "synchronize local -delete -criteria=size     ""C:\Users\jdoe\Documents\Synced Docs"" / 
    

    The parameter that you will want to play with is the "winscp.exe /log="C:\Sync\logs!M-!D-!Y@!T.xml" /xmlgroups"

提交回复
热议问题