Page 1 of 1

HELP to a .bat file

Posted: 29 Jun 2009 09:00
by digtokiller
hi i got a question about a bat file.
i got this

Code: Select all

Echo off
echo [my text1]
echo[my text2]

and i got this question.
is there a way so first my text1 come and then there go 4 sec and text2 come?

Posted: 29 Jun 2009 09:19
by avery_larry

Code: Select all

@echo off
echo [my text]
ping -n 5 127.0.0.1 >nul 2>nul
echo [my text 2 4 seconds later]

Posted: 30 Jun 2009 09:35
by Eagle710
This will work too.

Code: Select all

@echo off
echo [my text]
timeout /t 4 >nul
echo [my text 2 4 seconds later]

Posted: 01 Jul 2009 09:00
by avery_larry
Eagle710 wrote:This will work too.

Code: Select all

@echo off
echo [my text]
timeout /t 4 >nul
echo [my text 2 4 seconds later]

I'll take your word for it -- but "timeout" is not standard available command.