Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Shell.SetArguments
Sets list of arguments to parameters of this functions.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Shell | 7.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |
MBS( "Shell.SetArguments"; ShellRef { ; Arguments... } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
ShellRef | The reference number from the shell. | $shell | |
Arguments... | The first argument. Please pass one parameter per argument to set. |
Optional |
Result
Returns OK or error.
Description
Sets list of arguments to parameters of this functions.Pass as many arguments as needed.
This arguments define the list of arguments passed first on each call to Shell.Execute.
This function takes variable number of parameters. Pass as much parameters as needed separated by the semicolon in FileMaker.
Please repeat Arguments parameter as often as you need.
Examples
Pass three arguments
MBS( "Shell.SetArguments"; $shell; "-v"; "-l"; "/Users/cs")
Add parameters various ways:
Set Variable [ $shell ; Value: MBS( "Shell.New" ) ]
# set some parameters to go always:
Set Variable [ $r ; MBS( "Shell.SetArguments"; $shell; "-a"; "test" )
# add optional parameter
If [ $Verbose ]
Set Variable [ $r ; MBS( "Shell.AddArgument"; $shell; "-v" )
End If
# now run command here and pass some more parameters
Set Variable [ $s ; Value: MBS( "Shell.Execute"; $shell; $executable; $InputFile; $OutputFile) ]
See also
- Shell.AddArgument
- Shell.ClearArguments
- Shell.Execute
- Shell.GetArgument
- Shell.GetArguments
- Shell.New
- Shell.SetArgumentsList
This function checks for a license.
Created 11st November 2017, last changed 15th September 2024