Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Log file growing larger than specified limit

Your syntax looks good. Make sure you have up to date version of WinSCP. If you have, please attach the session log (or just its header).
rblair@caliberpublicsafety.com

Log file growing larger than specified limit

Below are the parameters of my batch script. Based on my understanding, my log file size should be limited to 10MB and I would only have 5 log files in retention. However, as it sits, my log file 101MB and still growing. Please let me know what I might be missing.
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
  /log="E:\ftplog\WinSCP.log" /ini=nul /logsize=5*10M ^
  /command ^
   "open  redacted" ^
    "option batch continue" ^
   "option confirm off" ^
   "lcd E:\Peraton" ^
    "cd /" ^
    "put -delete *.xml" ^
    "exit"