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

Advertisement

Surende
Guest

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,096
Location:
Prague, Czechia

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?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
28,096
Location:
Prague, Czechia

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?

Reply with quote

Advertisement

You can post new topics in this forum