saveVariables

void session.saveVariables ( String fileToSaveTo ) (enterprise edition only)

Description

Saves all current string and integer variables to a file.

Parameters

  • fileToSaveTo File path where the file should be saved, as a string.

Return Values

Returns void. If there is a problem retrieving the file contents an I/O error will be written to the log.

Change Log

Version Description
4.5 Available for enterprise edition.

Examples

Save Session Variables to File System

 // Saves the current session variables out to C:\myvars.txt.
 // Note that a forward slash is used instead of a back slash
 // as a folder delimiter. If back slashes were used, they
 // would need to be doubled so that they're properly escaped
 // out for the script interpreter.

 session.saveVariables( "C:/myvars.txt" );

See Also