Jump to content


< Back to Forum


 

Run Module


  • Please log in to reply

#1 Maciej 04 November 2015 - 11:07 PM

Hi,

 

we try to use batch file to move file to another location.

 

135959.766   7   4   2 state [move_announcement_to_dialout] Run Program
135959.766   7   4   2       rv    replace start [C:\cmb\cmb.bat $RV[session_id]]
135959.766   7   4   2       rv    replace end   [C:\cmb\cmb.bat ID20151104135926162]
135959.766   7   4   2       File.Exists(C:\cmb\cmb.bat) is true
135959.766   7   4   2       running program=[C:\cmb\cmb.bat], arguments=[ID20151104135926162], windowStyle=Hide, timeout=0
135959.766   7   4   2       ShellExe start [C:\cmb\cmb.bat][ID20151104135926162]
135959.917   7   4   2       process start failed

 

 

 

entering:

C:\cmb\cmb.bat ID20151104135926162

 

in command line it working properly

 

cmb.bat:

 

move /Y C:\cmb\%1_callmeback.wav \\192.168.0.100\cmb

 

Can You explain why it doesn't working?



#2 SupportTeam 05 November 2015 - 11:21 AM

We did a similar test and it worked fine.

 

From Run Program module we ran G:\Customers\Telestrada\movefile.bat with a parameter and the batch file was started with no errors and the file was copied fine.

 

movefile.bat had this content:

 

move /Y G:\Customers\Telestrada\%1.wav \\10.1.1.26\Misc

 

System was Win2012

 

Is there any anti-virus type software on this system which may prevent the starting of batch files by other processes ?

 

Is vgIvrService ran as a SYSTEM service or under some user account?

 

Also note that its most straightforward if the networked drive destination is publicly writable - otherwise the permissions may prevent the file from being copied. (also network destination drive cannot be mapped drive - which it isn't).

 

You can maybe setup tests that first copy the file to a local directory on C:\, confirm that works, and then progress to copying/moving file to network destination.

111612.058   7   3   1 state [Run Program 1] Run Program
111612.074   7   3   1       File.Exists(G:\Customers\Telestrada\movefile.bat) is true
111612.074   7   3   1       running program=[G:\Customers\Telestrada\movefile.bat], arguments=[45345453453], windowStyle=Hide, timeout=1
111612.076   7   3   1       ShellExe start [G:\Customers\Telestrada\movefile.bat][45345453453]
111612.103   7   3   1       Run Program waiting... (processHandle=4976, pid=3684)
111612.105   7   3   1       moh file not specified
111612.105   7   3   1 t     timer set   1 sec : EV_TIMEOUT_CHECKONSTATE

111613.061  30   3   1 timer EV_TIMEOUT_CHECKONSTATE
111613.061  30   3   1       q_scr +     evScriptEvent 9007 EV_TIMEOUT_CHECKONSTATE
111613.061   7   3   1       q_scr run   evScriptEvent sCode=[EV_TIMEOUT_CHECKONSTATE] iActionID=0, crn=0 [0|0|0|0|0][|||||] 00:00:00 max:1|00:00:00.0950068
111613.061   7   3   1       se    EV_TIMEOUT_CHECKONSTATE 9007  0|0|0  || LineState=LS_RUN_WAITTILLFINISHED
111613.061   7   3   1       LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE lCode2Str=EV_TIMEOUT_CHECKONSTATE
111613.065   7   3   1       IsProcessRunning current objVbsOrExeProcess (vbsrun) : id=3684, handle=4976, hash=41622463, hasExited=True, startTime=11/5/2015 11:16:12 AM, exitTime=11/5/2015 11:16:12 AM
111613.083   7   3   1       Process.HasExited error when test (Process has exited, so the requested information is not available.). Assume completed.
111613.083   7   3   1       task completed. vgm=22, iRunWait=1, iRunWait_ExeResult_NextVgm=0=[]