Differences
This shows you the differences between the selected revisions of the page.
2014-02-22 | 2014-07-21 | ||
Restored revision 1388304838. Undoing revision 1393059932. (Petr) (hidden) | jscript not javascript (martin) | ||
Line 67: | Line 67: | ||
You can also use environment variables in the script. | You can also use environment variables in the script. | ||
- | Alternatively, you can generate new script file each time. To automate that, make a wrapper script file. For simple tasks you can use built-in Windows scripting functionality from batch file (''.bat''). For complex tasks, you will need to use some scripting language, such JavaScript or VBScript from Windows script host or PHP or Perl. | + | Alternatively, you can generate new script file each time. To automate that, make a wrapper script file. For simple tasks you can use built-in Windows scripting functionality from batch file (''.bat''). For complex tasks, you will need to use some scripting language, such JScript or VBScript from Windows script host or PHP or Perl. |
Following example shows batch file that takes filename on command line and generates WinSCP script file to upload that file to remote server: | Following example shows batch file that takes filename on command line and generates WinSCP script file to upload that file to remote server: |