I am using CHOICE command in below script to include a delay of 120 secs.
But when running it for the first time its going for an infinite delay rather than 120 secs.
The 2nd run and so on is running and completing in time although.
ECHO WAIT START.. %time:~0,2%:%time:~3,2%:%time:~6,2%>> c:\\Systems\SLU_MI\PRE_PROD_IMPORT\SLU_File_Delay_Logs\Net_Retailer_Log_%dt%.txt
CHOICE /T 120 /C ync /CS /D y
ECHO WAIT OVER.. %time:~0,2%:%time:~3,2%:%time:~6,2%>> c:\\Systems\SLU_MI\PRE_PROD_IMPORT\SLU_File_Delay_Logs\Net_Retailer_Log_%dt%.txt
I have to move this script to PRODUCTION after resolving this issue. I cannot let it run for infinite time for first time in PRODUCTION as it will affect the following jobs.
Any help would be greatly appreciated.
Thanks in advance,
Aditya
What I have tried:
Tried steps ...
Other commands to delay time doesnt seems to be working