Guest Mike Demko Report post Posted 03/26/2004 04:51 PM I have a VBScript that returns "success" or "fail" to the VG script...do I need Enterprise version to do this? Share this post Link to post
Guest Mike D Report post Posted 03/26/2004 04:58 PM My VBScript is only checking to see if a file exists...If Enterprise version is required to do this with VBS, is there another way to do it? Share this post Link to post
SupportTeam Report post Posted 03/26/2004 11:46 PM From VoiceGuide help file: Example 9: The VB Script below demonstrates how the $RV_DEVICEID Result Variable is used to generate a Result file from which the data is read back into VoiceGuide. Please note that using the COM function Run_ResultReturn() is a preferable way of returning information to VoiceGuide (it's faster) - but a result file can be used if there is no other way. Dim iIndexDow, iIndexNasdaq, iIndexSP500 'Do some work here to retrieve the data and initialize 'the iIndexDow, iIndexNasdaq and iIndexSP500 variables strResultVariables= "[indexDow]{" & iIndexDow & "}" & _ "[indexNasdaq]{" & iIndexNasdaq & "}" & _ "[indexSP500]{" & iIndexSP500 & "}" iRet = WriteResultFile(strResultVariables) Function WriteResultFile(strResult) Const ForReading=1, ForWriting=2, ForAppending=8 filename = "VGRUNRESULT_$RV_DEVICEID.TXT" Set fso = CreateObject("Scripting.FileSystemObject") Set ts = fso.OpenTextFile(filename, ForWriting, True) ts.WriteLine(strResult) ts.Close WriteResultFile=0 'always deallocate after use... set ts = Nothing set fso = Nothing end function The above method can be used for returning results back to VG when the Pro version is used. For more information on "Result Files" please see the "Run Program Module" section of VG help file. Online copy of this page can be found here: http://www.voiceguide.com/vghelp/html/modR...dRunProgram.htm Share this post Link to post