Differences
This shows you the differences between the selected revisions of the page.
2016-11-21 | 2017-01-07 | ||
using ps> interwiki link (martin) | explicit anchor use (martin) | ||
Line 24: | Line 24: | ||
==== [[scripting]] Using WinSCP Scripting ==== | ==== [[scripting]] Using WinSCP Scripting ==== | ||
- | You can use a ''[[scriptcommand_stat|stat]]'' command in the ([[scripting#using_scripting|default]]) ''[[scriptcommand_option#batch|option batch abort]]'' mode to query file attributes. If the file does not exist, the ''stat'' command fails and so does the script. Then, [[scripting#checking_results|test WinSCP exit code]] to determine, if the file exists or not. | + | You can use a ''[[scriptcommand_stat|stat]]'' command in the ([[scripting#using_scripting|default]]) ''[[scriptcommand_option#batch|option batch abort]]'' mode to query file attributes. If the file does not exist, the ''stat'' command fails and so does the script. Then, [[scripting#result|test WinSCP exit code]] to determine, if the file exists or not. |
<code batch> | <code batch> |