Guest joostica Report post Posted 11/25/2003 09:33 AM Hello i want to have a new call log everday at 4 PM into a csv file. just like this command.com /c echo $RV_DD, $RV_MM, $RV_CIDNAME, $RV_CIDNUMBER, $RV[GetNumbersCode], $RV_CALLLENGTH >> c:\Log$RV_YY$RV_MM.csv and can i run this script like the creditpayment. thanks joost Share this post Link to post
SupportTeam Report post Posted 11/25/2003 11:05 AM You should be adding to the log file from the script which is handling the call - then at whatever time you chose you can process your log file of calls which arrived so far... You may want to look into using a VBScript module to save the data - this is the preferred way on multi-line systems... Example from VG Help file: Example 1: The VB Script below will append a line of text to the file C:\LogCall.txt - the line of text will contain information about start of the call, caller's telephone number and information entered by caller in module "EnterClientNumber". Result Variables are used in this script to allow information from VoiceGuide to be visible to the VB Script. Const ForReading = 1 Const ForWriting = 2 Const ForAppending = 8 set fso = CreateObject("Scripting.FileSystemObject") set tsFile = fso.OpenTextFile("C:\LogCalls.txt", ForAppending, True) tsFile.WriteLine "$RV_STARTTIME, $RV_CIDNUMBER, $RV[EnterClientNumber]" tsFile.Close set tsFile = Nothing set fso = Nothing Share this post Link to post