RunTask.GetArgumentCount
------------------------

Returns the number of arguments.

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

### Deprecated

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

MBS( "RunTask.GetArgumentCount" ) ### Parameters

none

### Result

Returns the number of arguments or error message.

### Description

Returns the number of arguments.  
One Windows all arguments are stored in one string with spaces separated, so this function returns 0 or 1 depending on whether an argument is set.  
### See also

- [RunTask.GetArgument](RunTaskGetArgument.md)

This function is free to use.

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

  
[RunTask.GetArgument](RunTaskGetArgument.md) - [RunTask.GetCurrentDirectoryPath](RunTaskGetCurrentDirectoryPath.md)

[HTML Version](RunTaskGetArgumentCount.shtml)