Hi,
I am trying to include a delay of 120 secs between following two DOS commands in .bat script:
COPY \\CDFS23001\\SOURCE\ORG\*ACCOUNTS*.xml \\CDFS23001\\SOURCE\TGT\
TIMEOUT /T 120 /NOBREAK
dir /b \\CDFS23001\\SOURCE\TGT\*ACCOUNTS*.xml > \\CDFS23001\\SOURCE\TGT\List_Accounts.txt
The above timeout is working perfectly when directly executing the .bat script directly or through command prompt but doesn't works when running through a task in other tool (command task in ETL tool - Informatica Powercenter).
The COPY and DIR commands are working fine but only the TIMEOUT doesnt work when batch file called through an external task.
I have also tried PING, CHOICE, PAUSE, SLEEP none of them works here when .bat file called though external task.
Can anyone please suggest me what might be the issue or any other way to include a time delay between above two commands.
Thanks in advane
What I have tried:
I have also tried PING, CHOICE, PAUSE, SLEEP none of them works here.