1.

Solve : run 2nd and 3rd bat file 5 min after running 1st bat file?

Answer»

Hi

I have four bat file (Win XP cmd)

1. Del
2. FBHI
3. HFI
4. min5ha

Problem 1:
del run automatically each morning as I log in. I combined them into one, when I run it run [del] then [FBHI] then closed. Do not run other two.

Problem 2:
#2, 3, 4 takes about 25min each to create 168maps as jpeg, where I do not want to wait to finish [FBHI] then run 3 and 4. HOWEVER I would like to wait for 5 min after [FBHI] started and then run other two.

Is there any way to do it in Win XP cmd.

Thanks if you have any solve for this.

saahmadbulbl
maybe you can add a TIMEOUT, if it exist on xp.How?add
timeout 300
call 2ndprogrem.battime out dosent exist in xp so use the ping trick
ping localhost -n 301 >nuLQuote from: SATexas on April 17, 2011, 05:13:56 PM

C:\test>type mainbat.bat
@echo off

call delbat.bat
echo return from delbat.bat
call FBHI.bat
echo return from FBHI.bat
echo Use sleep command for delays
rem sleep 300
sleep 25
call HFI.bat
echo return to main from HFI
call min5ha.bat
echo return to main from min5ha.bat

echo The End
echo BYE


Dear SATexas
Thank you very MUCH for your help. I modified your codes to the followings but it seems like it is not working.

After running FBHI for 1700 second the program closed itself and did not started HFI.bat or min5ha.bat or VI.bat. Did I missed anything in the code?

I don't mind if they (HFI, min5ha and VI) START one after one after 60 second in different command window.

Thank you very much

***********.
@echo off

call del.bat
echo return from delbat.bat
call FBHI.bat
echo return from FBHI.bat
echo Use sleep command for delays
rem sleep 60
sleep 25
call HFI.bat
echo return to main from HFI
call min5ha.bat
echo return to main from min5ha.bat
call VI.bat
echo return to main from VI.bat
echo The End
echo BYE
*********Still not working !!


Discussion

No Comment Found