...
Master | Agent | |||||||
---|---|---|---|---|---|---|---|---|
Language | Architecture | Language | Architecture | Comment | ||||
VBScript | JVM + Master 64bit
| ScriptControl:VBScript | No support for JVM + Agent 64bit |
| ||||
JVM + Master 32bit
| JVM + Agent 32bit
|
| ||||||
PowerShell | JVM + Agent 64bit
|
| ||||||
JVM + Agent 32bit
| ||||||||
dotnet (.NET) | same architectures as PowerShell |
|
Examples
- Examples are available for download from scripting.zip
- Unzip the archive in the
./config/live
folder of your JobScheduler Master, a sub-directoryscripting
will be created for job-related objects.
VBScript jobs calling COM components
Registering COM components
- From the attached archive scripting.zip register the COM component
ComComponent.dll
that implements a sample class. - Register the COM component for your respective architecture. The path to the .NET Framework might be different for your environment:
- 32bit
C:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm.exe ComComponent.dll /codebase /tlb /nologo
- 64bit
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\regasm.exe ComComponent.dll /codebase /tlb /nologo
- 32bit
- To later on remove the registration use
regasm.exe ComComponent.dll /u
VBScript job for Master
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<job title="Master runs VBScript that calls a COM component" order="no" stop_on_error="no" tasks="1"> <description > </description> <params > </params> <script language="vbscript"> <![CDATA[ Set fso = CreateObject ("Scripting.FileSystemObject") Set stdout = fso.GetStandardStream (1) Set stderr = fso.GetStandardStream (2) dim objTest, intResult Set objTest = CreateObject ("ComComponent.ComClassExample") intResult = objTest.AddTheseUp (100, 200) stdout.WriteLine "running VB job: " & intResult ]]> </script> <run_time /> </job> |
...