Share This Post:
IVR external program parameters
I need to run program. When I edit action “Run program” I enter full path to EXE file and add __VG__CALLED_NUMBER__ as command line parameter. But the program is started just like it’s working folder is in another place. It can’t see files in same folder. If I run program manually or force it to search for files in same folder it finds them but there are some limitations due to this problem.
Yes, the program is run from another folder. It is usually some folder where your application is installed on the gateway.
From your program, you should be able to determine the program file path. From there, you should be able to change the working folder to that folder. For example, if you are using Visual C++/MFC, you can use GetModuleFileName() to get the executable file path.
How can I make program be run with 2 command line parameters where constant string will be 1st parameter and __VG__LAST_RESULT__ will be the 2nd? Example: “program.exe code __VG__LAST_RESULT__” where code is just a constant string.
All you need to do is add 2 program arguments from the “Create Action: Run Program” window. Click the Add button to add the first argument, such as ‘abc’ (string literals are enclosed in single quotes); then click the Add button again to add your second argument.
Share This Post: