Developer Documentation Library > Scripting > mrScript Command Line Runner > Command line runner: Examples
 
Command line runner: Examples
This example runs the mrScriptBasic file called test.mrs, which is in a folder called c:\samples, using the default options:
mrscriptcl c:\samples\test.mrs
This example runs the mrScriptBasic file called sort.mrs, which is in the same folder, and uses the /v option, which displays the variables generated by the script and the values that they have when the script exits:
mrscriptcl c:\samples\sort.mrs /v
This example runs the example4.mrs file called and uses the /m: option to specify an MDM Document (.mdd) file to use with the script. It also uses the /v option to display the variables generated by the script.
mrscriptcl C:\samples\example4.mrs /m:" museum.mdd" /v
This example uses the /d option to substitute text in the mrScriptBasic file before the file is run (because the substitution will be made by the preprocessor). All occurrences of "InputFile" in myscript.mrs will be substituted with "c:\data\MyInputFile.xls":
mrscriptcl c:\samples\myscript.mrs /d:InputFile="\"c:\data\MyInputFile.xls\""
This example runs an .mrz package using the default location:
mrscriptcl "test.mrz"
This example runs an .mrz package using a specified location:
mrscriptcl "test.mrz" /loc:"c:\test"
See
mrScript Command Line Runner