Topic "overwrite log file"

Author Message
Guest




how can I overwrite the log file using command

winscp.exe TESTUSER /console /script="C:\docs\bat\winscp.txt" /log="c:\docs\bat\winscp.log"

I see int he windows gui on the logging tab (window) I can set the overwrite option how can I do this using the scripting or commands?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25966
Location: Prague, Czechia
This cannot be set on command-line. You have to configure it in the GUI.
EduTech

Guest


martin wrote:
This cannot be set on command-line. You have to configure it in the GUI.


If you set the configuration in the GUI for how log files should be generated (i.e. overwrite), do those rules then apply to any script commands?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25966
Location: Prague, Czechia
EduTech wrote:
If you set the configuration in the GUI for how log files should be generated (i.e. overwrite), do those rules then apply to any script commands?

Yes, see https://winscp.net/eng/docs/scripting#configuration

Though in the recent versions of WinSCP, you should set it using the /rawconfig switch instead. See:
https://winscp.net/eng/docs/rawconfig
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