Differences
This shows you the differences between the selected revisions of the page.
2012-01-06 | 2012-02-10 | ||
library (martin) | Windows script host (martin) | ||
Line 65: | Line 65: | ||
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 scripting 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 JavaScript 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: |