HELP to a .bat file

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
digtokiller
Posts: 1
Joined: 29 Jun 2009 08:56

HELP to a .bat file

#1 Post by digtokiller » 29 Jun 2009 09:00

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?

avery_larry
Expert
Posts: 391
Joined: 19 Mar 2009 08:47
Location: Iowa

#2 Post by avery_larry » 29 Jun 2009 09:19

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]

Eagle710
Posts: 19
Joined: 29 Mar 2009 17:27

#3 Post by Eagle710 » 30 Jun 2009 09:35

This will work too.

Code: Select all

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

avery_larry
Expert
Posts: 391
Joined: 19 Mar 2009 08:47
Location: Iowa

#4 Post by avery_larry » 01 Jul 2009 09:00

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.

Post Reply