Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
RunTask.SetLaunchPath
Sets the path to be launched.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
RunTask | 3.1 | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes, on macOS and Windows | ❌ No |
Deprecated
This function was deprecated. Use Shell functions instead.
MBS( "RunTask.SetLaunchPath"; Path ) More
Parameters
Parameter | Description | Example |
---|---|---|
Path | The new path for current working directory. | "notepad.exe" |
Result
Returns OK or error.
Description
Sets the path to be launched.Examples
Launch a Java application on Mac:
MBS( "RunTask.NewTask" )
# you launch java
MBS( "RunTask.SetLaunchPath"; "/usr/bin/java" )
# and pass jar file as arguments followed by other arguments
MBS( "RunTask.SetArguments"; "-jar" ; "/Applications/test/java.jar"; "Hello" )
MBS( "RunTask.Launch")
See also
- RunTask.GetLaunchPath
- RunTask.Launch
- RunTask.NewTask
- RunTask.ReadErrorText
- RunTask.SetArguments
- RunTask.Wait
- URLScheme.SetDefaultHandler
Example Databases
- Shell/RunTask/Run Shell Script on Mac
- Shell/RunTask/RunTask Windows
- Shell/RunTask/RunTask with read and write on Mac
- Shell/RunTask/RunTask
Blog Entries
This function checks for a license.
Created 18th August 2014, last changed 13th June 2020