Guest Dave L Report post Posted 01/04/2005 06:00 PM I'm trying to write data to a txt file using command.com. Like this c:\winnt\system32\command.com /C $RV_YEAR-$RV_MONTH-$RV_DATE, $RV_HOUR:$RV_MINUTE:$RV_SECOND, $RV[Get Tel Num], $RV[Get Card Num], $RV[Get Expiry Date], $RV[Get CVV], $RV[Get Amount] >> C:\PROGRA~1\VoiceGuide\Scripts\SETCOM~1\CCPay\log\TNX_LOG.TXT But I get back a Run Program Failed, err[5:Invalid procedure call or argument]. Please help. Thanks! 195103.74 5 [save Data to File] Run Program 195103.74 5 rv replace start: [c:\winnt\system32\command.com /C $RV_YEAR-$RV_MONTH-$RV_DATE, $RV_HOUR:$RV_MINUTE:$RV_SECOND, $RV[Get Tel Num], $RV[Get Card Num], $RV[Get Expiry Date], $RV[Get CVV], $RV[Get Amount] >> C:\PROGRA~1\VoiceGuide\Scripts\SETCOM~1\CCPay\log\TNX_LOG.TXT] 195103.74 5 rv ns [PathSysVoice]{C:\Program Files\VoiceGuide\system\voice\}[PathApp]{C:\Program Files\VoiceGuide\}[PathDataVm]{C:\Program Files\VoiceGuide\data\}[PathVgSys]{C:\Program Files\VoiceGuide\system\}[scriptsPath]{C:\Program Files\VoiceGuide\Scripts\Setcom Switchboard Server\}[scriptPath]{C:\Program Files\VoiceGuide\Scripts\Setcom Switchboard Server}[$RV_STARTTIME]{1/4/2005 7:49:46 PM}[$RV_DEVICEID]{5}[$RV_CIDNAME]{}[PathApp]{C:\Program Files\VoiceGuide\}[$RV_CIDNUMBER]{}[Determine work hours_Input]{(2 < 6) and ((19 >= 9) and (19 < 17))}[Determine work hours]{False}[time]{False}[scriptEnd_Time]{1/4/2005 7:49:50 PM}[scriptEnd_Gosub_Script]{C:\PROGRA~1\VoiceGuide\Scripts\SETCOM~1\CCPay\CCPay.vgs}[scriptEnd_Gosub_Module]{Start}[scriptStart_Time]{1/4/2005 7:49:50 PM}[scriptStart_CalledFrom_Script]{C:\Program Files\VoiceGuide\Scripts\Setcom Switchboard Server\Switchboardvmail.vgs}[scriptStart_CalledFrom_Module]{Welcome After Hours}[scriptsPath]{C:\PROGRA~1\VoiceGuide\Scripts\SETCOM~1\CCPay\}[scriptPath]{C:\PROGRA~1\VoiceGuide\Scripts\SETCOM~1\CCPay}[start]{0}[Get Tel Num]{68886}[Get Tel Num_PathTaken]{success}[Get Card Num]{4111111111111111}[Get Card Num_PathTaken]{success}[Get Expiry Date]{1107}[Get Expiry Date_PathTaken]{success}[Get CVV]{754}[Get CVV_PathTaken]{success}[Get Amount]{3}[Get Amount_PathTaken]{success}[say Card Nbr]{1} 195103.74 5 eng run=c:\winnt\system32\command.com /C 2005-1-4, 19:51:3, 68886, 4111111111111111, 1107, 754, 3 >> C:\PROGRA~1\VoiceGuide\Scripts\SETCOM~1\CCPay\log\TNX_LOG.TXT, window=NormalFocus, wait=1 195103.76 5 Run Program Failed, err[5:Invalid procedure call or argument] running[c:\winnt\system32\command.com /C 2005-1-4, 19:51:3, 68886, 4111111111111111, 1107, 754, 3 >> C:\PROGRA~1\VoiceGuide\Scripts\SETCOM~1\CCPay\log\TNX_LOG.TXT] 195103.76 5 timer clear Share this post Link to post
SupportTeam Report post Posted 01/04/2005 09:25 PM The "echo" command is not specified in this command string... Try this: c:\winnt\system32\command.com /C echo $RV_YEAR-$RV_MONTH-$RV_DATE, $RV_HOUR:$RV_MINUTE:$RV_SECOND, $RV[Get Tel Num], $RV[Get Card Num], $RV[Get Expiry Date], $RV[Get CVV], $RV[Get Amount] >> C:\PROGRA~1\VoiceGuide\Scripts\SETCOM~1\CCPay\log\TNX_LOG.TXT BTW. If you are using multiple lines you'd be better of using a VBScript to write to file. Share this post Link to post
Guest Guest Report post Posted 01/04/2005 10:17 PM Hi I'm still getting the same error, see log below: 001221.36 5 [save Data to File] Run Program 001221.38 5 rv replace start: [c:\winnt\system32\command.com /C echo $RV_YEAR-$RV_MONTH-$RV_DATE, $RV_HOUR:$RV_MINUTE:$RV_SECOND, $RV[Get Tel Num], $RV[Get Card Num], $RV[Get Expiry Date], $RV[Get CVV], $RV[Get Amount] >> C:\PROGRA~1\VoiceGuide\Scripts\SETCOM~1\CCPay\log\TNX_LOG.TXT] 001221.38 5 rv ns [PathSysVoice]{C:\Program Files\VoiceGuide\system\voice\}[PathApp]{C:\Program Files\VoiceGuide\}[PathDataVm]{C:\Program Files\VoiceGuide\data\}[PathVgSys]{C:\Program Files\VoiceGuide\system\}[scriptsPath]{C:\Program Files\VoiceGuide\Scripts\Setcom Switchboard Server\}[scriptPath]{C:\Program Files\VoiceGuide\Scripts\Setcom Switchboard Server}[$RV_STARTTIME]{1/5/2005 12:10:54 AM}[$RV_DEVICEID]{5}[$RV_CIDNAME]{}[PathApp]{C:\Program Files\VoiceGuide\}[$RV_CIDNUMBER]{}[Determine work hours_Input]{(3 < 6) and ((0 >= 9) and (0 < 17))}[Determine work hours]{False}[time]{False}[scriptEnd_Time]{1/5/2005 12:11:02 AM}[scriptEnd_Gosub_Script]{C:\PROGRA~1\VoiceGuide\Scripts\SETCOM~1\CCPay\CCPay.vgs}[scriptEnd_Gosub_Module]{Start}[scriptStart_Time]{1/5/2005 12:11:02 AM}[scriptStart_CalledFrom_Script]{C:\Program Files\VoiceGuide\Scripts\Setcom Switchboard Server\Switchboardvmail.vgs}[scriptStart_CalledFrom_Module]{Welcome After Hours}[scriptsPath]{C:\PROGRA~1\VoiceGuide\Scripts\SETCOM~1\CCPay\}[scriptPath]{C:\PROGRA~1\VoiceGuide\Scripts\SETCOM~1\CCPay}[start]{0}[Get Tel Num]{0832965555}[Get Tel Num_PathTaken]{success}[Get Card Num]{4111111111111111}[Get Card Num_PathTaken]{success}[Get Expiry Date]{1107}[Get Expiry Date_PathTaken]{success}[Get CVV]{754}[Get CVV_PathTaken]{success}[Get Amount]{1}[Get Amount_PathTaken]{success}[say Card Nbr]{1} 001221.38 5 eng run=c:\winnt\system32\command.com /C echo 2005-1-5, 0:12:21, 0832965555, 4111111111111111, 1107, 754, 1 >> C:\PROGRA~1\VoiceGuide\Scripts\SETCOM~1\CCPay\log\TNX_LOG.TXT, window=NormalFocus, wait=1 001221.39 5 Run Program Failed, err[5:Invalid procedure call or argument] running[c:\winnt\system32\command.com /C echo 2005-1-5, 0:12:21, 0832965555, 4111111111111111, 1107, 754, 1 >> C:\PROGRA~1\VoiceGuide\Scripts\SETCOM~1\CCPay\log\TNX_LOG.TXT] 001221.39 5 timer clear Share this post Link to post
Guest Dave L Report post Posted 01/04/2005 10:45 PM Here's more logs writing to a different directory & file: 003341.34 5 [save Data to File] Run Program 003341.34 5 rv replace start: [c:\winnt\system32\command.com /C echo $RV_YEAR-$RV_MONTH-$RV_DATE, $RV_HOUR:$RV_MINUTE:$RV_SECOND, $RV[Get Tel Num], $RV[Get Card Num], $RV[Get Expiry Date], $RV[Get CVV], $RV[Get Amount] >> C:\PROGRA~1\VoiceGuide\Scripts\SETCOM~1\log\tnx.txt] 003341.34 5 rv ns [PathSysVoice]{C:\Program Files\VoiceGuide\system\voice\}[PathApp]{C:\Program Files\VoiceGuide\}[PathDataVm]{C:\Program Files\VoiceGuide\data\}[PathVgSys]{C:\Program Files\VoiceGuide\system\}[scriptsPath]{C:\Program Files\VoiceGuide\Scripts\Setcom Switchboard Server\}[scriptPath]{C:\Program Files\VoiceGuide\Scripts\Setcom Switchboard Server}[$RV_STARTTIME]{1/5/2005 12:32:29 AM}[$RV_DEVICEID]{5}[$RV_CIDNAME]{}[PathApp]{C:\Program Files\VoiceGuide\}[$RV_CIDNUMBER]{}[Determine work hours_Input]{(3 < 6) and ((0 >= 9) and (0 < 17))}[Determine work hours]{False}[time]{False}[scriptEnd_Time]{1/5/2005 12:32:32 AM}[scriptEnd_Gosub_Script]{C:\PROGRA~1\VoiceGuide\Scripts\SETCOM~1\CCPay\CCPay.vgs}[scriptEnd_Gosub_Module]{Start}[scriptStart_Time]{1/5/2005 12:32:32 AM}[scriptStart_CalledFrom_Script]{C:\Program Files\VoiceGuide\Scripts\Setcom Switchboard Server\Switchboardvmail.vgs}[scriptStart_CalledFrom_Module]{Welcome After Hours}[scriptsPath]{C:\PROGRA~1\VoiceGuide\Scripts\SETCOM~1\CCPay\}[scriptPath]{C:\PROGRA~1\VoiceGuide\Scripts\SETCOM~1\CCPay}[start]{0}[Get Tel Num]{555}[Get Tel Num_PathTaken]{success}[Get Card Num]{4565538888566642}[Get Card Num_PathTaken]{success}[Get Expiry Date]{1108}[Get Expiry Date_PathTaken]{success}[Get CVV]{123}[Get CVV_PathTaken]{success}[Get Amount]{5}[Get Amount_PathTaken]{success}[say Card Nbr]{1} 003341.34 5 eng run=c:\winnt\system32\command.com /C echo 2005-1-5, 0:33:41, 555, 4565538888566642, 1108, 123, 5 >> C:\PROGRA~1\VoiceGuide\Scripts\SETCOM~1\log\tnx.txt, window=NormalFocus, wait=1 003341.35 5 Run Program waiting... (shellid=1472, process=1508) 003341.35 5 timer set 1 EV_TIMEOUT_CHECKONSTATE 003342.45 5 timer fired EV_TIMEOUT_CHECKONSTATE 003342.45 5 ScriptEventCode 9007 iLineState=1501 003342.45 5 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE 003342.45 5 task completed (shellid=1472, process=1508) vgm=114, iRunWait=1, iRunWait_ExeResult_NextVgm=0 003342.45 5 No information returned from program to VG (no VGRUNRESULT_5.TXT or SHLRESLT.TXT) 003342.45 5 task completed LsRunWaitChooseNext iNextVgm=119 003342.45 5 timer clear Share this post Link to post
SupportTeam Report post Posted 01/04/2005 11:33 PM I'd suggest doing some debugging by starting with a simple expression/command that works and slowly adding to it making it closer and closer to the one that doesn't work - at some point it will fail and you should then be able to see which part of it makes it fail. Start with just a straightforward: C:\winnt\system32\command.com /C echo TestString >> C:\test.txt or one of the examples from the Help file. do these work OK for you? Share this post Link to post