Re: Script Via command line works fine but via Task Schedular fails.
So will you tell us anything about the way you use WinSCP from Task Scheduler?
Though as a wild guess -- make sure you have read:
https://winscp.net/eng/docs/commandline#syntax
Though as a wild guess -- make sure you have read:
https://winscp.net/eng/docs/commandline#syntax