• Hi,

    When we run the batch file from command prompt it works fine with the same account with which agent is running with. But not from agent. When we restarted agent it restarted working again. The batch was working fine for past two year.

    This is the command what is schedule using agent

    \\APPServer\cr$\LIVE\7234\serverapps\batch\bin\DoLoad.bat  -f CI -q

     

     

    Conntents of DoLoad.bat

    ====================

    @echo off

    setlocal

    SET PERL5LIB=

    if "%OS%" == "Windows_NT" goto WinNT

    if exist "D:\CR\LIVE\7234\serverapps\batch\perl\bin\perl.exe" "D:\CR\LIVE\7234\serverapps\batch\perl\bin\perl.exe" -S "D:\CR\LIVE\7234\serverapps\batch\bin\DoBatch.pl" %*

    if not exist "D:\CR\LIVE\7234\serverapps\batch\perl\bin\perl.exe" perl.exe -S "DoBatch.pl" %*

    goto endofperl

    :WinNT

    if exist "D:\CR\LIVE\7234\serverapps\batch\perl\bin\perl.exe" "D:\CR\LIVE\7234\serverapps\batch\perl\bin\perl.exe" -S "D:\CR\LIVE\7234\serverapps\batch\bin\DoBatch.pl" %1 %2 %3 %4 %5 %6 %7 %8 %9

    if not exist "D:\CRr\LIVE\7234\serverapps\batch\perl\bin\perl.exe" perl.exe -S "DoBatch.pl" %1 %2 %3 %4 %5 %6 %7 %8 %9

    :endofperl

    endlocal