|
Running External Scripts
|
Previous Top Next |
|
|
| Is the full path to the script to be run.
|
| It must be wrapped in quotes as shown.
|
| Is a string containing values to pass to the external script.
|
| It must be wrapped in quotes as shown.
|
| It cannot contain any quotes.
|
| It is optional as the script may not require variables.
|
| If you need to pass more than one variable to the script then it is up to you how you achieve this within the confines of the variable string. For example you could pass "255|127|1|2" as your variable string and then use the external script to parse these into their individual number values.
|
| Function Main(inputString)
|
| Dim SelectionValue
|
| SelectionValue = Val(inputString)
|
| Main = ""
|
| Select Case SelectionValue
|
| Case 1
|
| Main = "1/1-12"
|
| Case 2
|
| Main = "2/1-12"
|
| Case 5
|
| Main = "5/1-12"
|
| End Select
|
| End Function
|
|
|
| Function Main(inputString)
|
| Main=""
|
| If cl.DeviceHostnameId="MyRouter1" Then Main="MyNewRouterName1"
|
| If cl.DeviceHostnameId="MyRouter2" Then Main="MyNewRouterName2"
|
| End Function
|