limit log file size, command line, xp
command line looks similar to this
"C:\Program Files\WinSCP3\WinSCP.exe" /log=logfile.txt /command "open user:pass@server.com" "get *.* c:\folder\" "exit"
thanks for your help
Advertisement
Advertisement
So you want WinSCP to delete beginning of the log in case a total size exceed certain limit?it would be good because the log file is 6MB after one transfer, I am doing one transfer per day, and I would like to limit the size it can grow to.
I don't want to go in every week/month and delete the file.
Advertisement
That's what I've meant :-)not delete but limit the size it can grow to, so as it appends to the file it would remove older entries needed to keep the file size at or below the predetermined setting.
Advertisement
You can set the INI file read-only.
When I am using ini and have just logging section saved to it, it works fine but after script is run, it write all other options to ini file. That is the reason I dont want to use ini.
Advertisement
I confirm it would be very useful 8)
There was no improvement in this respect yet.Was there ever a solution to this? I would really like to purge/limit the log file on a nightly basis but can't see how.
Advertisement
Can you describe your use case? How big does your log file (for a single session) get that you need to limit its size?I second the need for limiting log size option
Advertisement
It will be possible to limit log size on WinSCP 5.10:My "logs" folder must not exceed 100mb. But I can't limit each log size file in it.
How can I do this, please ? I 'm little newbie on this work.
Advertisement
You can post new topics in this forum