Shell.SetArgumentsList
----------------------

Sets list of arguments.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Shell](component_Shell.md) | [7.5](newinversion75.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |

MBS( "Shell.SetArgumentsList"; ShellRef; List ) 

**MBS**( **"Shell.SetArgumentsList";** /\* Sets list of arguments. \*/  
**$ShellRef**; /\* The reference number from the shell.e.g. $shell \*/   
**$List**) /\* The list of arguments.e.g. "-v¶-x¶-a" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ShellRef | The reference number from the shell. | $shell |
| List | The list of arguments. | "-v¶-x¶-a" |

### Result

Returns OK or error.

### Description

Sets list of arguments.  
This arguments define the list of arguments passed first on each call to [Shell.Execute](ShellExecute.md).  
Please pass each argument in one line and no quotes around file paths.  
### Examples

Sets list of arguments:

 Set Variable \[ $s ; Value: MBS ( "Shell.SetArgumentsList"; $shell ;   
  
"-i" &amp; ¶ &amp;  
$inputPath &amp; ¶ &amp;  
  
"-o" &amp; ¶ &amp;  
$outputPath &amp; ¶ &amp;  
  
"-v" &amp; ¶ &amp;  
  
"-l" &amp; ¶ &amp;  
"5"  
  
 ) \]  
### See also

- [Shell.Execute](ShellExecute.md)
- [Shell.GetArgumentCount](ShellGetArgumentCount.md)
- [Shell.GetArguments](ShellGetArguments.md)
- [Shell.SetArguments](ShellSetArguments.md)

### Example Databases

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

This function checks for a license.

Created 11st November 2017 , last changed 18th December 2022

  
[Shell.SetArguments](ShellSetArguments.md) - [Shell.SetBufferSize](ShellSetBufferSize.md)

[HTML Version](ShellSetArgumentsList.shtml)