Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods
#Rumba
Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods
Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods
Hi
Rumba scripts can be launched from a command line, the executable is vsp.exe which is located in "\\System\\ScriptEngine" folder the Rumba application folder.
Here is a copy of the help of the various parameters:
Command Line Options
The Script Player command line options are as follows.
Syntax : VSP.exe [-n -d -p -v -e -s -i] [filename.csf]
Option
Description
-n
Opens the RUMBA Script Player in a normal window size. If the option is omitted,
the RUMBA Script Player is opened minimized
-d
Opens the RUMBA Script Player in Debug mode. The RUMBA Script Player's window
will be in normal size. If a 'filename.csf' is specified, it will be executed
-p
Opens the RUMBA Script Player in Animate mode. The RUMBA Script Player's window
will be in normal size. If a 'filename.csf' is specified, it will be executed
-v
Variable predefinition
-e
Sets the active emulation (can be:Telnet, 3270, 5250)
-s
Sets the active session
-i
Sets the active InstanceName. When using long instance names, include the name within quotes (").
So for example if you have a macro with the following
Sub Main
Msgbox MyParameters
End Sub
then you can pass your parameters at launch time using
8
-vMyParameterers="Hello;World"
between the vsp.exe and the patch and macro filename
e.g.
C:\\Program Files (x86)\\Micro Focus\\RUMBA\\system\\ScriptEngine>vsp.exe -vMyParameters="HellWorld;Tom" C:\\temp\\MyScript.csf
U8sing the above you can pass strings and numbers in one string parameter and parse that string casting the Int or Lng number or using multiple comma separated variable names and assignments after the -v option.
e.g.
-vMyString="Hello",MyInt=5
Note: I have not tested the other documented parameters, but the -v one works. Should you encounter an issue with one of the other parameters, please contact support and have a service incident raised.
Hope that helps,
Tom
Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods
Hi
Rumba scripts can be launched from a command line, the executable is vsp.exe which is located in "\\System\\ScriptEngine" folder the Rumba application folder.
Here is a copy of the help of the various parameters:
Command Line Options
The Script Player command line options are as follows.
Syntax : VSP.exe [-n -d -p -v -e -s -i] [filename.csf]
Option
Description
-n
Opens the RUMBA Script Player in a normal window size. If the option is omitted,
the RUMBA Script Player is opened minimized
-d
Opens the RUMBA Script Player in Debug mode. The RUMBA Script Player's window
will be in normal size. If a 'filename.csf' is specified, it will be executed
-p
Opens the RUMBA Script Player in Animate mode. The RUMBA Script Player's window
will be in normal size. If a 'filename.csf' is specified, it will be executed
-v
Variable predefinition
-e
Sets the active emulation (can be:Telnet, 3270, 5250)
-s
Sets the active session
-i
Sets the active InstanceName. When using long instance names, include the name within quotes (").
So for example if you have a macro with the following
Sub Main
Msgbox MyParameters
End Sub
then you can pass your parameters at launch time using
8
-vMyParameterers="Hello;World"
between the vsp.exe and the patch and macro filename
e.g.
C:\\Program Files (x86)\\Micro Focus\\RUMBA\\system\\ScriptEngine>vsp.exe -vMyParameters="HellWorld;Tom" C:\\temp\\MyScript.csf
U8sing the above you can pass strings and numbers in one string parameter and parse that string casting the Int or Lng number or using multiple comma separated variable names and assignments after the -v option.
e.g.
-vMyString="Hello",MyInt=5
Note: I have not tested the other documented parameters, but the -v one works. Should you encounter an issue with one of the other parameters, please contact support and have a service incident raised.
Hope that helps,
Tom
Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods
Hi
Rumba scripts can be launched from a command line, the executable is vsp.exe which is located in "\\System\\ScriptEngine" folder the Rumba application folder.
Here is a copy of the help of the various parameters:
Command Line Options
The Script Player command line options are as follows.
Syntax : VSP.exe [-n -d -p -v -e -s -i] [filename.csf]
Option
Description
-n
Opens the RUMBA Script Player in a normal window size. If the option is omitted,
the RUMBA Script Player is opened minimized
-d
Opens the RUMBA Script Player in Debug mode. The RUMBA Script Player's window
will be in normal size. If a 'filename.csf' is specified, it will be executed
-p
Opens the RUMBA Script Player in Animate mode. The RUMBA Script Player's window
will be in normal size. If a 'filename.csf' is specified, it will be executed
-v
Variable predefinition
-e
Sets the active emulation (can be:Telnet, 3270, 5250)
-s
Sets the active session
-i
Sets the active InstanceName. When using long instance names, include the name within quotes (").
So for example if you have a macro with the following
Sub Main
Msgbox MyParameters
End Sub
then you can pass your parameters at launch time using
8
-vMyParameterers="Hello;World"
between the vsp.exe and the patch and macro filename
e.g.
C:\\Program Files (x86)\\Micro Focus\\RUMBA\\system\\ScriptEngine>vsp.exe -vMyParameters="HellWorld;Tom" C:\\temp\\MyScript.csf
U8sing the above you can pass strings and numbers in one string parameter and parse that string casting the Int or Lng number or using multiple comma separated variable names and assignments after the -v option.
e.g.
-vMyString="Hello",MyInt=5
Note: I have not tested the other documented parameters, but the -v one works. Should you encounter an issue with one of the other parameters, please contact support and have a service incident raised.
Hope that helps,
Tom
Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods
Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods
Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods
Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods
Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods
Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods
Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods
Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods
Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods
Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods
This is the code:
Sub Main
DlgStart
DlgItemType VarType(MyString) & MyString
DlgItemAsk "Confirm Policy number :" , MyString,1, 9
DlgInquire
DlgGetItemValue 1 , MyString
DlgEnd
End Sub
.\\vsp.exe -vMyString="Test" C:\\Source\\Proto.CSF
This returns the following:
3 for the Var type and 0 as the result. So for some reason, it is thinking MyString is a long variable.
Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods
Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods
Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods
Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods
Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods
Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.