"Opening session using command-line parameter in scripting is deprecated. Use 'open' command instead.
Error occurred during logging. It's been turned off."
Here's the part of the script which I use to run WinSCP:
%WinSCP% %profile% /log="%log%" /command "option batch on" "get -delete %remotedir%*.jdb %localdir%" exit
Which runs as:
"C:\Program Files (x86)\WinSCP\winscp.com" SISSVRUTIL02 /log="D:\Scripts\AVDefsDLLog.txt" /command "option batch on" "get -delete /*.jdb D:\VirusDefs\Temp\" exit
Any idea what could be causing this error?