Re: When the script runs as a scheduled task.
also make sure you open the session using "open" command. The Open command? This should be part of the stored session, SWMC-FTP-PDF correct?
Do not open the session by passing stored session name on command line, use "open" command.
https://winscp.net/eng/docs/scriptcommand_open
https://winscp.net/eng/docs/guide_automation
Here's my issue; when I run a .bat file by double-clicking it, then WinSCP works perfectly within that script.
When I Schedule the .bat file to run, it runs, but the WinSCP part of the script is ignored/does not execute for some reason.
Can you help?
Please read FAQ:
https://winscp.net/eng/docs/faq_scheduler