How do I know that script completed successfully?

You can tell the result of script by WinSCP exit code. Code 0 indicates success, while 1 indicates an error. For more details refer to scripting documentation.

Advertisements:

If you want the script to terminate with code 1 immediately once any error occurs, use command option batch abort.

To find out why the script failed, inspect session log.

For an example see guide to transfer automation.

 
  faq_script_result.txt · Last modified: by prikryl
 

Search Documentation

This page

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

Associations

Site design by Black Gate