Page 1 of 1
Warning message.
Posted: 29 Mar 2009 17:35
by Eagle710
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?
Posted: 30 Mar 2009 08:10
by avery_larry
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!
Posted: 06 Apr 2009 14:28
by Eagle710
I will have to try those commands. I have been a little busy lately. I will post back on this is confirmed. Thanks.
Posted: 06 Apr 2009 15:02
by avery_larry
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.
Re: Warning message.
Posted: 31 Jan 2010 12:03
by Eagle710
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.
Re: Warning message.
Posted: 31 Jan 2010 12:53
by aGerman
Eagle710No 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