Task does not start for a user in Task Scheduler but the batch file the task triggers runs fine

P

Pa1 Kumar

Hi,

we have a batch file(.bat) that does a task and it runs fine independently. but when we schedule a task in Task scheduler to run the batch file periodically under "SYSTEM" account. it never launches and gives a 101 code that it cannot start. if it starts, never finishes.

we are using Windows Server 2012 R2 DataCenter. Not sure what was the issue. A screen shot of the task is as follows.

1278833.png


1278834.png


Here is the script I am trying to run.

cd /d %DATAIMPORTLOCATION%
echo "command = dataexchange -sync csv -mode import -workdir %DATAIMPORTLOCATION% -ini %DATAIMPORTLOCATION%\adw_csv_import.ini"
call C:\scripts\startworkbench.bat dataexchange -sync csv -mode import -workdir %DATAIMPORTLOCATION% -ini %DATAIMPORTLOCATION%\adw_csv_import.ini
%DATAIMPORTLOCATION% will have the file adw_csv_import.ini file. Please let me know what is missing here and why is the task not running.





K.V.N.PAVAN

Continue reading...
 
Back
Top Bottom