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

Re: How to write log of file transfer to text file using winscp.com

Sorry, I do not understand what you ask for.
Do you want to generate WinSCP script file dynamically?
Or do you want WinSCP to produce a session log file?
Or redirect WinSCP output to a file?
martin

Re: How to write log of file transfer to text file using winscp.com

Sorry, I do not understand what you ask for.
Do you want to generate WinSCP script file dynamically?
Or do you want WinSCP to produce a session log file?
Or redirect WinSCP output to a file?
Surende

How to write log of file transfer to text file using winscp.com

How to write log of file transfer to text file using winscp.com
my code is below

move "D:\*.csv" "D:\TEST\" >>D:\log.txt
winscp.com /command ^
"option batch abort" ^
"open sftp://username and password/ -privatekey=""private key path"" -hostkey=""*""" ^
"cd TEST/Csv/" ^
"put D:\*.csv" ^
"exit"

move "D:\TEST\*.csv" "D:\Backup\" >>D:\log.txt

=============
How can i write log for winscp file sending actions