This function exports the security system configuration to an encrypted file.
|Function||Group||Execution||Windows||Embedded||Thin Client||Mobile Access|
|ExportSecuritySystem||Security||Synchronous||Supported||Supported||Not supported||Not supported|
ExportSecuritySystem( strFileName, strPassword )
- The complete file path and name where you want to save the configuration file.
- The main password for the security system. This same password will be used to protect the exported file.
|-2||Wrong parameter type.|
|-1||Invalid number of parameters.|
|0||Couldn’t write security data.|
|1||File exported successfully.|
- It can be called from the Startup Script (which is executed when the project itself is run), Script Groups (which are continuously executed by the Background Task), and any Global Procedures called by them; and
- It cannot be called from the Graphics Script (which is executed separately by each client), Screen Scripts (which are attached to individual screens), and Command animations.
For more information, see VBScript Interfaces in the Software.
To work around this limitation, create a Script Group that actually calls the function, configure an appropriate tag/expression trigger in the Execution box of the Script worksheet, and then create a project screen that somehow changes the value of that tag/expression. Therefore, when a user on a connected client uses the screen to change the value, the Script Group will be executed on the project server.
ExportSecuritySystem( "C:security.txt" )
ExportSecuritySystem( "C:security.txt", "mypa55w0rd" )