Signiant Support

How to use VBscript from within a Job Component. Print


How to use VBscript from within a Job Template.


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.


#!{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