VoiceGuide IVR Software Main Page
Jump to content

Problem With Xcopy Or Move Files In Run Module

Recommended Posts

I convert recorded call from wav to mp3 file and want to copy (or move) mp3 file to mapped folder on other computer.

 

conversion working properly but copying to mapped network drive doesn't work.

 

RUN module:

 

 

[konwersja_Z]

Type=Run Program

DispSize=69

Txt=Run the program, and read in the results file created. The results supplied can then be used in other parts of the script (see Result Variables).

ProgramToRun=C:\WINDOWS\system32\xcopy.exe /Y c:\callrecord\mp3\*.mp3 p:\test

RunHoldPlay=

RunMode=1

RunWait=1

on {success} goto [nagrania]

on {fail} goto [nagrania]

 

 

 

 

log file shows:

081835.517 6 4 2 FindNextVgmTitleInPathList: next module title is=[konwersja_Z]

081835.517 6 4 2 qTel add cmd_PlayStop [0,0,0,0,0][||||]

081835.517 6 4 2 play PlaySoundStop ok

081835.517 7 4 2 qTel run cmd_PlayStop

081835.517 6 4 2 task completed LsRunWaitChooseNext iNextVgm=25

081835.517 6 4 2 t timer clear (force=False)

081835.517 6 4 2 RunModule start Run Program, [konwersja_Z], iModuleIdx=25, previous: vgm=23, vgs=5:5

081835.517 6 4 2 state [konwersja_Z] Run Program

081835.517 6 4 2 File.Exists(C:\WINDOWS\system32\xcopy.exe) is true

081835.533 6 4 2 running program=[C:\WINDOWS\system32\xcopy.exe], arguments=[/Y c:\callrecord\mp3\*.mp3 p:\test], windowStyle=NormalFocus, timeout=1

081835.533 6 4 2 ShellExe start [C:\WINDOWS\system32\xcopy.exe][/Y c:\callrecord\mp3\*.mp3 p:\test]

081835.533 6 4 2 Run Program waiting... (processHandle=1456, pid=2084)

081835.533 6 4 2 t timer set 1 sec : EV_TIMEOUT_CHECKONSTATE

081836.267 13 7 3 timer EV_TIMEOUT_AFTERIDLE_ALLOWOUT

081836.267 13 7 3 qScr add evScriptEvent 9013 EV_TIMEOUT_AFTERIDLE_ALLOWOUT

081836.267 6 7 3 qScr run evScriptEvent sCode=[EV_TIMEOUT_AFTERIDLE_ALLOWOUT] iActionID=0, crn=0[0|0|0|0|0][|||||]

081836.267 6 7 3 scriptevent EV_TIMEOUT_AFTERIDLE_ALLOWOUT 0|0|0 ||

081836.267 6 7 3 ls set Null (scriptstate=LS_NULL_AWAITINGCALLS)

081836.517 4 4 2 timer EV_TIMEOUT_CHECKONSTATE

081836.517 4 4 2 qScr add evScriptEvent 9007 EV_TIMEOUT_CHECKONSTATE

081836.517 6 4 2 qScr run evScriptEvent sCode=[EV_TIMEOUT_CHECKONSTATE] iActionID=0, crn=0[0|0|0|0|0][|||||]

081836.517 6 4 2 scriptevent EV_TIMEOUT_CHECKONSTATE 0|0|0 ||

081836.517 6 4 2 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE lCode2Str=EV_TIMEOUT_CHECKONSTATE

081836.533 6 4 2 Process.HasExited error when test (Proces zakończył się, więc żądane informacje nie są dostępne.). Assume completed.

081836.533 6 4 2 task completed. vgm=25, iRunWait=1, iRunWait_ExeResult_NextVgm=0=[]

081836.533 6 4 2 ExeResult_NextVgm has not been set. check for Result file.

081836.533 6 4 2 no result file returned from program (VGRUNRESULT_4.TXT).C:\WINDOWS\system32\xcopy.exe /Y c:\callrecord\mp3\*.mp3 p:\test

081836.533 6 4 2 FindNextVgmTitleInPathList: next module title is=[nagrania]

081836.533 6 4 2 qTel add cmd_PlayStop [0,0,0,0,0][||||]

081836.533 6 4 2 play PlaySoundStop ok

081836.533 6 4 2 task completed LsRunWaitChooseNext iNextVgm=22

081836.533 6 4 2 t timer clear (force=False)

 

 

This same command:

"C:\WINDOWS\system32\xcopy.exe /Y c:\callrecord\mp3\*.mp3 p:\test"

 

in .bat file working properly.

Share this post


Link to post
This same command:

"C:\WINDOWS\system32\xcopy.exe /Y c:\callrecord\mp3\*.mp3 p:\test"

 

in .bat file working properly.

 

Can you then just try running the .bat file from the Run Program module?

 

You may add some echo statements in the batch file that echo to a log file of your choice when the batch file starts and when it finishes - just to confirm that the batch file was started by VoiceGuide

Share this post


Link to post

Hi,

 

.bat in RUN module file doesn't work too.

 

I solve this problem by task in windows witch every minute call .bat file.

 

But it isn't no effect I need.

 

Witch kind of echo statements should I add?

Share this post


Link to post

As the destination folder seems to be some folder over the network then access permiossions can come into play.

 

The VoiceGuide service runs by default under a 'Local System' type accunt, and permissions of that account may be different then the permissions of the User account under which you run the batch file.

 

Sugget you first test with destination folder being on same hard disk.

 

We tested with the Run Progam module executing the following command line:

 

C:\WINDOWS\system32\xcopy.exe /Y c:\temp1\*.mp3 c:\temp2

 

and it worked fine for copying *.mp3 to another folder on same hard disk.

Suggest you confirm first that you can get this simple case working and then move onto setting the permissions to let you access the directory on the remote network hard disk.

 

 

163129.953 6 1 1 state [Run Program 2] Run Program

163129.953 6 1 1 File.Exists(C:\WINDOWS\system32\xcopy.exe) is true

163129.953 6 1 1 running program=[C:\WINDOWS\system32\xcopy.exe], arguments=[/Y c:\temp1\*.mp3 c:\temp2], windowStyle=NormalFocus, timeout=1

163129.953 6 1 1 ShellExe start [C:\WINDOWS\system32\xcopy.exe][/Y c:\temp1\*.mp3 c:\temp2]

163129.953 6 1 1 Run Program waiting... (processHandle=11828, pid=4292)

Share this post


Link to post

I have tried to move files with

 

"move /Y c:\callrecord\mp3\*.mp3 \\network_comp\pg_m2\test"

 

with success, but not in VG RUN script.

 

 

 

170927.407 6 2 1 RunModule start Run Program, [konwersja_Z], iModuleIdx=39, previous: vgm=37, vgs=6:6

170927.407 6 2 1 state [konwersja_Z] Run Program

170927.407 6 2 1 File.Exists(C:\callrecord\TEST.bat) is true

170927.407 6 2 1 running program=[C:\callrecord\TEST.bat], arguments=[], windowStyle=NormalFocus, timeout=1

170927.407 6 2 1 ShellExe start [C:\callrecord\TEST.bat][]

170927.407 6 2 1 Run Program waiting... (processHandle=832, pid=3024)

170927.407 6 2 1 t timer set 1 sec : EV_TIMEOUT_CHECKONSTATE

170928.407 23 2 1 timer EV_TIMEOUT_CHECKONSTATE

170928.407 23 2 1 qScr add evScriptEvent 9007 EV_TIMEOUT_CHECKONSTATE

170928.407 6 2 1 qScr run evScriptEvent sCode=[EV_TIMEOUT_CHECKONSTATE] iActionID=0, crn=0[0|0|0|0|0][|||||]

170928.407 6 2 1 scriptevent EV_TIMEOUT_CHECKONSTATE 0|0|0 ||

170928.407 6 2 1 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE lCode2Str=EV_TIMEOUT_CHECKONSTATE

170928.407 6 2 1 Process.HasExited error when test (Proces zakończył się, więc żądane informacje nie są dostępne.). Assume completed.

170928.407 6 2 1 task completed. vgm=39, iRunWait=1, iRunWait_ExeResult_NextVgm=0=[]

170928.407 6 2 1 ExeResult_NextVgm has not been set. check for Result file.

170928.407 6 2 1 no result file returned from program (VGRUNRESULT_2.TXT).C:\callrecord\TEST.bat

Share this post


Link to post

Have you tried copying files to another folder on same hard disk?

 

Someting like this:

 

C:\WINDOWS\system32\xcopy.exe /Y c:\temp1\*.mp3 c:\temp2

 

Suggest you confirm first that you can get this simple case working and then move onto setting the permissions to let you access the directory on the remote network hard disk for apps that run under a 'Local System' type account.

(or change the account under which the VoiceGuide service starts?)

Share this post


Link to post

So this looks like a permissions issue when accessing remote drive.

 

There is some information online about configuring systems to ensure Windows Services can access networked drives.

(VoiceGuide runs as a Windows Service)

 

Eg: http://serverfault.com/questions/177139/windows-service-cant-access-network-share

 

Searching Google for "Windows service cannot access network drive" or similar should yield further results.

Share this post


Link to post

When I call .bat file directly it's working. VG call this .bat file in RUN module without success.

 

 

.bat file include:

 

 

xcopy /Y c:\callrecord\mp3\*.wav p:\

Share this post


Link to post

When you call the .BAT file directly you are doing so using a different user account with different privileges then the account that the Windows Service is using.

 

maybe try setting the Windows service to run under the same account that you are using when logged into the machine?

 

Which version of Windows is used on this system?

 

Which version of Windows is used on system on which the "p:\" drive/directory is located?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×