Differences

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

2009-04-22 2009-04-22
Windows scripting host (martin) using parameterised scripts (martin)
Line 24: Line 24:
</code> </code>
-===== Using script =====+===== [[using]] Using script =====
Now to make using script easier/automatic you can: Now to make using script easier/automatic you can:
-  * Make shortcut to it on desktop. Either make shortcut to batch file (''.bat'') or enter full command line to shortcut itself.+  * Make shortcut to it on desktop to ease execution. Either make shortcut to batch file (''.bat'') or enter full command line to shortcut itself
 +  * If the wrapping batch file takes filename as command line parameter (see [[guide_automation#modifying_the_script_automatically|below]]) you can: 
 +    * Make shortcut to it on desktop and use it by dropping files on the icon. Windows automatically run the batch file and passes path to dropped file as command-line parameter. 
 +    * In a similar way you can put the shortcut to the batch file into Explorer’s ‘Send To’ context menu (''c:\documents and settings\username\sendto'').
  * [[guide_schedule|Schedule automatic execution]].   * [[guide_schedule|Schedule automatic execution]].
Line 72: Line 75:
</code> </code>
-You can also put the script on your desktop and than easily use it by dropping files on its icon. Windows automatically run the script and passes path to dropped file as command-line parameter. In the same way you can put the script into Explorer's 'Send To' context menu (''c:\documents and settings\username\sendto'').+See more hints on [[guide_automation#using|using parameterised batch file]].
//See [[guide_automation_advanced|guide to advanced scripting]] for examples of script generation using more powerful languages.// //See [[guide_automation_advanced|guide to advanced scripting]] for examples of script generation using more powerful languages.//

Last modified: by martin