Saves screen history contents to the specified file.
Parameters
- filePath
- The full pathname of the file to save the screen history contents to.
- overwrite
- If true, overwrites an existing copy of the file. If false, the file will not be saved if it already exists.
Return Value
ReturnCode.Success if the save succeeded, ReturnCode.Error if it failed.
This sample uses SaveScreenHistory to save the screen history to the myScreens.rshx file before the session is disconnected. If the file exists, it is overwritten with the new screen history.