opening session.... is deprecated
I've been using a script to download a daily file from a server for several years and recently had to change to a new server that holds my file in a different directory. I changed the location in the script, but now I get a couple of new errors in the log (custom built log to echo everything the script does into a text file) which says:
"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?
Thanks.
"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?
Thanks.