Differences

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

2008-03-14 2008-03-14
no summary (martin) typo (martin)
Line 27: Line 27:
===== Modifying the script automatically ===== ===== Modifying the script automatically =====
-You may want to modify the script automatically. For example you may want to operate it with different file each time. To do that you need to generate new script file each time. To automate that, make a wrapper script file. For simple tasks you can use build-in Windows scripting functionality from batch file (''.bat''). For complex tasks, you will need to use some scripting language, such as PHP or Perl.+You may want to modify the script automatically. For example you may want to operate it with different file each time. To do that you need to 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 as 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: