@Mari059: It will be possible to limit log size on WinSCP 5.10:
Issue 18 – Session log file rotation
Issue 18 – Session log file rotation
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
WinSCP /log=logfile.txt /logsize=5MB /command "open user:pass@server.com" "get *.* c:\folder\" "exit"
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.
"C:\Program Files\WinSCP3\WinSCP.exe" /log=logfile.txt /command "open user:pass@server.com" "get *.* c:\folder\" "exit"