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

Author Message
Surende

Guest


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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
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
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
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?
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License