Differences
This shows you the differences between the selected revisions of the page.
2020-12-24 | 2022-07-14 | ||
automatically using target article title for link anchor (martin) | working directory + clarification (martin) | ||
Line 11: | Line 11: | ||
</code> | </code> | ||
- | If the task works correctly from Command prompt, see [[faq_scheduler|*]] | + | Execute the command from an independent working directory (neither WinSCP installation folder ''C:\Program Files (x86)\WinSCP'', &winpath nor script folder, nor transfer source nor destination folder). Common cause of problems is that your command or script rely on a specific working directory, and your scheduled tasks runs from elsewhere. |
+ | |||
+ | If the command works correctly from Command prompt, see [[faq_scheduler|*]] | ||
If the task fails even when run from Command prompt, inspect a console output of the task for any error. If you see an error, check list of [[messages|common error messages]] or search this website for the error. To check for an error in console output, it is [[troubleshooting#scripting|recommended]] to use ''[[executables|winscp.com]]''. | If the task fails even when run from Command prompt, inspect a console output of the task for any error. If you see an error, check list of [[messages|common error messages]] or search this website for the error. To check for an error in console output, it is [[troubleshooting#scripting|recommended]] to use ''[[executables|winscp.com]]''. |