Advanced IVR Tutorial Lesson 1: 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 launches broadcastbyphone
REM adds -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
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 launches broadcastbyphone
REM adds -noexit if you want to keep the program up after broadcast
"C:\Program Files\Voicent\BroadcastByPhone\bin\vcast.exe"
%selectedfile -startnow -cleanstatus
Here the 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
.