Differences

This shows you the differences between the selected revisions of the page.

2013-12-29 2014-07-21
note on directories in sendmail installation instructions (martin) 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:

Last modified: by martin