This item was deprecated in version 2019r2.1. Please use FolderItem.Open as a replacement.
If the FolderItem is an application, the application is launched. If the FolderItem is a document, the document is opened and the application is launched if necessary.
Parameters is the application's parameters to be passed to the launched application (Windows and Linux). The optional parameter Activate specifies whether the application should be launched in the foreground or background. The default value is True(Foreground). If you specify False, the app will be attempted to Launch in the background, but this may not work with certain applications.
Launch is not available in console applications.
MacOS does not Launch multiple copies of apps. If you need to Launch multiple copies of an app, you should use a Shell with the "open -n Appname.app" terminal command like this:
// myApp is a FolderItem pointing to the app you want to launch Var sh As New Shell sh.Execute("open -n " + myApp.ShellPath)
This example displays a PDF file in the built-in PDF viewer:
Var pdfFile As FolderItem pdfFile = FolderItem.ShowOpenFileDialog("") If pdfFile <> Nil Then pdfFile.Launch End If
All project types on all supported operating systems.