计划任务未运行

计划任务未运行

我有一个问题,创建了一个计划任务,运行一个bat文件。它被编程为使用管理员凭据运行,在其他任务中工作。该文件是一个普通的bat文件。文件内的代码如下:

 @ECHO OFF
    REM   ------------------------------------------------------------------------------------------------------------------------

REM                             ENVIOS

REM ------------------------------------------------------------------------------------------------------------------------


IF EXIST C:\Indra\AZConnect\Export\Sonae\INVOICFF\*.* (MOVE C:\Indra\AZConnect\Export\Sonae\INVOICFF\*.* C:\Indra\AZConnect\5600000000427INT\INVOICFF\)
IF EXIST C:\Indra\AZConnect\Export\ECI\INVOICFF\*.* (MOVE C:\Indra\AZConnect\Export\ECI\INVOICFF\*.* C:\Indra\AZConnect\8422416999990INT\INVOICFF\)
IF EXIST C:\Indra\AZConnect\Export\Auchan\INVOICFF\*.* (MOVE C:\Indra\AZConnect\Export\Auchan\INVOICFF\*.* C:\Indra\AZConnect\5600000004289INT\INVOICFF\)


REM ------------------------------------------------------------------------------------------------------------------------

REM                             RECEÇÃO

REM ------------------------------------------------------------------------------------------------------------------------


IF EXIST C:\Indra\AZConnect\5600000004289INT\ORDERSFF\*.* (MOVE C:\Indra\AZConnect\5600000004289INT\ORDERSFF\*.* C:\Indra\AZConnect\Import\ORDERSFF\)
IF EXIST C:\Indra\AZConnect\5600000000427INT\ORDERSFF\*.* (MOVE C:\Indra\AZConnect\5600000000427INT\ORDERSFF\*.* C:\Indra\AZConnect\Import\ORDERSFF\)
IF EXIST C:\Indra\AZConnect\8422416999990INT\ORDERSFF\*.* (MOVE C:\Indra\AZConnect\8422416999990INT\ORDERSFF\*.* C:\Indra\AZConnect\Import\ORDERSFF\)


REM ------------------------------------------------------------------------------------------------------------------------
REM                     VALIDAÇÃO AZCONNECT EM MEMÓRIA
REM ------------------------------------------------------------------------------------------------------------------------

TASKKILL /F /IM AZCONNECT.EXE

REM ------------------------------------------------------------------------------------------------------------------------
REM                         RELATÓRIOS
REM ------------------------------------------------------------------------------------------------------------------------

IF EXIST C:\Indra\AZCONNECT\PBLIST.TXT (Type C:\Indra\AZCONNECT\PBLIST.TXT >> C:\Indra\AZCONNECT\Reports\PBLIST.txt)
IF EXIST C:\Indra\AZCONNECT\MBLIST.TXT (Type C:\Indra\AZCONNECT\MBLIST.TXT >> C:\Indra\AZCONNECT\Reports\MBLIST.TXT)
IF EXIST C:\Indra\AZCONNECT\ICONTROL*.TXT (MOVE C:\Indra\AZCONNECT\ICONTROL*.TXT C:\Indra\AZCONNECT\Reports\)

IF EXIST C:\Indra\AZCONNECT\PBLIST.TXT (del C:\Indra\AZCONNECT\PBLIST.TXT)
IF EXIST C:\Indra\AZCONNECT\MBLIST.TXT (del C:\Indra\AZCONNECT\MBLIST.TXT)

REM ------------------------------------------------------------------------------------------------------------------------
REM                          COMUNICAÇÕES EDI
REM ------------------------------------------------------------------------------------------------------------------------

REM RASDIAL INDRA <user> <pass>

START /W C:\Indra\AZCONNECT\AZCONNECT.EXE /ER

REM RASDIAL INDRA /disconnect


REM ------------------------------------------------------------------------------------------------------------------------
REM                         RELATÓRIOS
REM ------------------------------------------------------------------------------------------------------------------------

IF EXIST C:\Indra\AZCONNECT\PBLIST.TXT (Type C:\Indra\AZCONNECT\PBLIST.TXT >> C:\Indra\AZCONNECT\Reports\PBLIST.txt)
IF EXIST C:\Indra\AZCONNECT\MBLIST.TXT (Type C:\Indra\AZCONNECT\MBLIST.TXT >> C:\Indra\AZCONNECT\Reports\MBLIST.TXT)
IF EXIST C:\Indra\AZCONNECT\ICONTROL*.TXT (MOVE C:\Indra\AZCONNECT\ICONTROL*.TXT C:\Indra\AZCONNECT\Reports\)

IF EXIST C:\Indra\AZCONNECT\PBLIST.TXT (del C:\Indra\AZCONNECT\PBLIST.TXT)
IF EXIST C:\Indra\AZCONNECT\MBLIST.TXT (del C:\Indra\AZCONNECT\MBLIST.TXT)

日志文件显示:

107 - task triggered
319 - received message to start task
100 - task started
129 - created task process (c:\windows\system32\cmd.exe)
200 - action started
201 - action completed
102 - task completed

但它没有运行。有什么想法吗?

相关内容