Warning message.

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Eagle710
Posts: 19
Joined: 29 Mar 2009 17:27

Warning message.

#1 Post by Eagle710 » 29 Mar 2009 17:35

I have a batch file that does a series of things. I have the '@echo off' at the beginning of the file but I would like those commands to run while a message stating "Please wait" is on the screen. Any help/advice/tips?

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

#2 Post by avery_larry » 30 Mar 2009 08:10

Is something like this what you want . . ?

Code: Select all

@echo off
cls
echo Please wait . . .
do all your other stuff here
echo All finished!

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

#3 Post by Eagle710 » 06 Apr 2009 14:28

I will have to try those commands. I have been a little busy lately. I will post back on this is confirmed. Thanks.

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

#4 Post by avery_larry » 06 Apr 2009 15:02

I should note that:

do all your other stuff here


just means to put your various commands there. Don't use the word "do" like a for loop.

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

Re: Warning message.

#5 Post by Eagle710 » 31 Jan 2010 12:03

What I would like is for a series of other commands to run while the user will only sees a MessageBox or warning message saying "please wait". Once the commands are done that msgbox will disappear.

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Warning message.

#6 Post by aGerman » 31 Jan 2010 12:53

Eagle710

No chance using native batch.
Figure out if this one would work for you:

Code: Select all

@echo off &setlocal
set "mbox=%temp%\msg.vbs"
set "wTitle=Please Wait..."
>"%mbox%" echo MsgBox "", 0, "%wTitle%"
start "" "%mbox%"

:: This ping line is just an example. Replace with your commands.
ping -n 4 localhost>nul

del "%mbox%"
taskkill /fi "windowtitle eq %wTitle%" /f >nul
pause


Regards
aGerman

Post Reply