Zoomed Image

AMSX Scripting Language - Command : ExecuteCode

Summary

Compile and execute dynamically assembled VB.NET code

Description

For ExecuteCode: compiles the VB.NET source accumulated by CollectCode and runs it, with access to the current XML document, node, arguments, and script variables. For ExecuteCodeFile: reads VB.NET source from the file specified by cmd instead. Variable changes made inside the executed code are merged back into the script scope after execution.

Parameters

ParameterDescription
cmd(ExecuteCodeFile only) full path to the .vb source file to execute; ignored for ExecuteCode

Syntax


ExecuteCode "(ExecuteCodeFile only) full path to the .vb source file to execute; ignored for ExecuteCode"

Return to the AMSX Command Reference