KB-133194: Script applications

Script applications

Script applications need to have the same name as their scripting interface from which they are called (for example, ScriptBeforeUpload or ScriptAfterUpload) and they need to be in one of the two file formats_.exe or_.bat (for example, ScriptBeforeUpload.exe or ScriptBeforeUpload.bat).

Note

If the script directory contains two identically named script applications with the file endings .exe and .bat, only the script application with the file ending *.exe is executed.

Script applications are executed using the command lines with the following parameters:

/ConfigFileW Absolute path (path and name) of the UTF-16 coded interface fil
/rd Path to the server archiv
/at Execution locatio

Note

Due to compatibility issues, there is a possibility to use interface files in the local code page. For this, the parameter /ConfigFile: is given. The parameter /ConfigFile: contains the absolute path to the coded interface file which is encoded in the local code page, if this can be converted from a UTF-16 without data being lost.

We strongly recommend that you test any existing scripts for Unicode support and make changes as needed.

Example

Server-side execution of the ScriptBeforeUpload.exe script application using the information from the interface file:

ScriptBeforeUpload.exe /ConfigFile:D:ServerArchiveVD_TMP_VD639DA01F8ABD4D9D80C702AF85C822F5.ini /rd:D:ServerArchive /at:s /ConfigFileW:D:ServerArchiveVD_TMP_VDF9E5E19475BC4AC7945E2DA75ED8E74A.ini

Note

If an error occurs during the start or when the script application is executed, the job will fail and the error will be displayed as the job result.

An initialization file is used to assign a script to a specific component type. The file needs to be given the same name as the Script*.exe (for example, ScriptBeforeEdit.exe -> ScriptBeforeEdit.ini).:

Section

Key

Description

General default

Name of the SCRIPT file, which should be executed for all component types

<Componenttype-Id>/

Name of the SCRIPT file to be executed for the specified component type (multiple keys with different component type ids are possible).


Last update: September 15, 2023

Related Articles

TABLE OF CONTENTS

IMPRINT | PRIVACY POLICY | COOKIE POLICY

Privacy Preference Center