Function RunApplication(Application As String, [ParamStr As String], [DefaultDir As String]) As Boolean
Purpose:
§ helper function to start an external application like ITLogBook, ITConfigManager or any other program
Parameters:
§ Application (Input): Name of the application to start or the name of a document file.
In the latter case the extension of the file must be associated in Windows with an application.
§ ParamStr (Input -- optional): Parameters required by the application.
§ DefaultDir (Input -- optional): Path to the default directory the application should work with.
Return value:
§ True if the start of the application was successful
§ False otherwise
Notes:
§ This is a convenience function to start ITConfigManager, ITLogBook or any other program from your application, for instance for comfortably viewing the current logfile or ITLogLib configuration.
Samples:
§ This code opens ITConfigManager with the current configuration file:
GetITLogLib().RunApplication(GetITLogLib().GetConfigFile());
§ This code opens the current logfile depending on its filetype (*.ilf, *.html or *.txt) in ITLogBook, a web browser or a text editor:
Dim LogChannel As ITLogLib2.ITOutputLogChannel
Set LogChannel = ITLogLib2.OpenLogChannel("StdLog")
ITLogLib2.RunApplication LogChannel.CurrentLogFile