on 07-20-2017 2:41 PM
hi guys I have a script which runs fine from command line and by creating .bat files as well.. but when I am running same script from dataservices, it is not doing anything, kept running..
script needs to open the Snap11.exe and download the data and close the Snap11.exe.
see the script below:-
.bat file
@echo off
start cmd.exe /c F:\Snap_11\Snap11.exe /S "test1.mdf" /IR && timeout 5 && "F:\Snap_11\Snap11.exe" /S "test1.mdf" /DB "test2"
cmd script
F:\Snap_11\Snap11.exe /S "test1.mdf" /IR && timeout 5 && "F:\Snap_11\Snap11.exe" /S "test1.mdf" /DB "test2"
data services script:-
exec('cmd', 'F:\\Snap_11\\Snap11.exe /S "test1.mdf" /IR && timeout 5 && "F:\\Snap_11\\Snap11.exe" /S "test1.mdf" /DB "test2"');
please help me to find an error.
Hi Ravi
I tried executing the .bat file as per your instructions, but nothing happens, job gets stuck and after aborting the job manually no error shown in error log file in management console..
same result if I use print before exec function as well
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi leo dec,
Use print before exec function to see the error in the log. like print(exec()).
try creating a .bat file wit your command and try calling the bat file in the exec function like below.
exec('cmd', 'C:\test.bat', 😎
Thanks,
Ravi kiran.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any help please..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.