gisvpn
asked on
Display a Message
I would like to diplay a message via a Batch file. Ideally i would like this message to appear in a dialog box or something similar as oppsed to using the CMD window and when they press a key it will continue executing the batch file.
Does anyone know if this is possible ?
Many thanks
Ollie
Does anyone know if this is possible ?
Many thanks
Ollie
ASKER
Hello..
Thanks for your post.. Sounds like a good idea..
When i do this and call it from the batch file its opens the text editor to edit the msg.vbs.. am i doing something wrong :)
Thanks for your post.. Sounds like a good idea..
When i do this and call it from the batch file its opens the text editor to edit the msg.vbs.. am i doing something wrong :)
yes.... you have vbs registered with notepad...
either call the vbs with
start /wait %systemroot%\system32\cscr ipt.exe msg.vbs "message"
or register vbs with cscript
either call the vbs with
start /wait %systemroot%\system32\cscr
or register vbs with cscript
ASKER
Hey thank you thats great.. will this work for Windows XP | 2000 | 9x | NT ?
Many thanks
Many thanks
ASKER
Also is it possible for the message to timeout and continue anyway if no one presses ok ?
Thank you again !!
Thank you again !!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
You are good !
One more 2 quick questions :
Is it possible to add the time in the dialog box ( i.e. the time left until it continues )
Would it be possible to allow someone to PAUSE the count down ? I.e add a PAUSE button and when they click it, it displays PAUSE in the same Dialog box.
THANK YOU !
(".)
One more 2 quick questions :
Is it possible to add the time in the dialog box ( i.e. the time left until it continues )
Would it be possible to allow someone to PAUSE the count down ? I.e add a PAUSE button and when they click it, it displays PAUSE in the same Dialog box.
THANK YOU !
(".)
if you want to change it to an IE based window yes (much more baggage there)
otherwise no
ASKER
ok many thanks... if i set up another question could you help me with a IE based one ?
sure
ASKER
Thank you please see this one :)
https://www.experts-exchange.com/questions/20928725/IE-Based-options.html
https://www.experts-exchange.com/questions/20928725/IE-Based-options.html
*********Begin VBS********
if wscript.arguments.count then
msgbox wscript.arguments(0)
end if
*********end vbs**********
save that as msg.vbs
to call from your bat file....
use Start /wait msg.vbs "Hi there"
the user has to click okay for batch to continue
Let me know if you want something different.