RunTask.SetVerb
---------------

Sets the verb, that specifies the action to be performed.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [RunTask](component_RunTask.md) | [3.2](newinversion32.md) | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |

### Deprecated

This function was [deprecated](deprecated.md). Use [Shell](component_Shell.md) functions instead.

MBS( "RunTask.SetVerb"; Verb ) 

**MBS**( **"RunTask.SetVerb";** /\* Sets the verb, that specifies the action to be performed. \*/  
**$Verb**) /\* The new verb.e.g. "open" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Verb | The new verb. | "open" |

### Result

Returns OK or error.

### Description

Sets the verb, that specifies the action to be performed.   
The set of available verbs depends on the particular file or folder. Generally, the actions available from an object's shortcut menu are available verbs. This parameter can be "", in which case the default verb is used if available. If not, the "open" verb is used. If neither verb is available, the system uses the first verb listed in the registry. The following verbs are commonly used:  
  
| edit | Launches an editor and opens the document for editing. If lpFile is not a document file, the [RunTask.Launch](RunTaskLaunch.md) function will fail. |
|---|---|
| explore | Explores the folder specified by lpFile. |
| find | Initiates a search starting from the specified directory. |
| open | Opens the file specified by the lpFile parameter. The file can be an executable file, a document file, or a folder. |
| print | Prints the document file specified by lpFile. If File is not a document file, the [RunTask.Launch](RunTaskLaunch.md) function will fail. |
| properties | Displays the file or folder's properties. |

### See also

- [RunTask.GetVerb](RunTaskGetVerb.md)
- [RunTask.Launch](RunTaskLaunch.md)

### Example Databases

- [Shell/RunTask/RunTask Windows](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Shell/RunTask/RunTask%20Windows.shtml#1ScriptAnchor_)

This function checks for a license.

Created 18th August 2014 , last changed 13th June 2020

  
[RunTask.SetLaunchPath](RunTaskSetLaunchPath.md) - [RunTask.Terminate](RunTaskTerminate.md)

[HTML Version](RunTaskSetVerb.shtml)