Zoomed Image

AMSX Scripting Language - Command : SaveTextFilePrivateFromVariable

Summary

Save the value of a variable to a file in the private customer data area

Description

Writes the value of a named AMSX variable to a file inside the WebServerPathDBPrivate folder. The file name must not contain path separators or ".." to prevent directory traversal.

Parameters

ParameterDescription
cmdFile name only (no path separators or ".." allowed)
Argument 0Variable name whose value is written to the file

Syntax


SaveTextFilePrivateFromVariable "File name only (no path separators or ".." allowed)", "Variable name whose value is written to the file"

Return to the AMSX Command Reference