On this Page

    -scriptFolder (Merge)

    Specify the folder where the script files reside.

    Syntax

    -scriptFolder foldername

    Description

    Specify the folder where the script files reside. By default, script files are assumed to be in the same folder as the form (the folder specified by the -form command line option). Use -scriptFolder to change this default.

    -scriptFolder C:/DocOrigin/User/Scripts

    When Merge encounters a #include in a script embedded in the form, and the include name does not provide a fully qualified path, Merge will look for the name in the -scriptFolder folder.

    A common alternative is to use a folder mapping variable as in:

    #include "$S/MyScript.wjs"

    This same path is used for a referenced script-based filter that has no fully qualified path.