Signiant Support

How to use VBscript from within a Job Component. Print


Summary

How to use VBscript from within a Job Template.

Discussion

The first line of any command script can be used to inform the transfer agent which shell should be used. The first line is also used to indicate the file extension which should be given to the file. This allows Windows based-systems to launch the appropriate associations.

Syntax:

#!{script interpreter with options}#ft={file extension to be used}

For example:
#!c:\windows\system32\cscript.exe //NoLogo#ft=vbs
Wscript.Echo "Command terminated successfully"

The option "//NoLogo" must always be used, as it will ensure that no dialog windows are launched by the agent.

Note that the full path to the cscript interpreter is required