ivr IVR Tutorial Table of Content << Previous  >> Next

8.6 Update the Windows Batch File

We need to update the runvcast.bat file to take care of the new features.

The Lesson 6 Batch File

This is the runvcast.bat file under the folder C:\Call List.

REM delay for 30 seconds
REM use ping command as a workaround since there is no sleep command

ping 127.0.0.1 -n 30 -w 1000 > NUL

REM now launch broadcastbyphone
REM add -noexit if you want to keep the program up after broadcast

"C:\Program Files\Voicent\BroadcastByPhone\bin\vcast.exe"
     "C:\Call List\mylist.voc"
     -startnow -cleanstatus

Here the call list is hard coded to be "C:\Call List\mylist.voc"

The New Batch File

REM delay for 30 seconds
REM use ping command as a workaround since there is no sleep command

ping 127.0.0.1 -n 30 -w 1000 > NUL

REM choose the correct call list file

for /L %%a in (0, 1, %1) do shift
set selectedfile=%1


REM now launch broadcastbyphone
REM add -noexit if you want to keep the program up after broadcast

"C:\Program Files\Voicent\BroadcastByPhone\bin\vcast.exe"
     %selectedfile -startnow -cleanstatus

Here is call list file choice is passed in as the first argument, and all the call list files are passed in after that. For example, one might invoke the batch file as:

runvcast.bat 1 "C:\Call List\mylist A.voc" "C:\Call List\mylist B.voc"

That command will launch BroadcastByPhone using mylist B.voc.

 

 
ivr IVR Studio Table of Content << Previous >> Next