Login | |
|
 |
RE: Can I bypass MsgBox ? - 8/16/2006 11:37:37 PM
|
|
 |
|
| |
mbouchard
Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
|
if the computer is going to reboot where would the message box display after popup times out? You could also check out shutdown.exe which should be on all Windows 2000/XP machines.
_____________________________
Mike For useful Scripting links see the Read Me First stickey! Always remember Search is your friend.
|
|
| |
|
|
|
 |
RE: Can I bypass MsgBox ? - 8/17/2006 1:58:20 AM
|
|
 |
|
| |
Snipah
Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
|
NetXMan, Will this work for you? msgResult = MsgBox("Click OK to reboot, or Cancel to quit",4097) 'using VBSystemModal (4096) and VBOKCancel(1) = 4096 + 1 If (msgResult = 1) Then 'user clicked OK MsgBox "Clicked OK, thank you, will reboot now.",64 'start reboot sequence in 1 minute Else MsgBox "Clicked Cancel, thank you, will terminate script, and NOT reboot",64 Wscript.Quit End If
_____________________________
For more information, please see the "Read me First" topic. http://www.visualbasicscript.com
|
|
| |
|
|
|
 |
RE: Can I bypass MsgBox ? - 8/24/2006 12:12:39 AM
|
|
 |
|
| |
Country73
Posts: 732
Score: 10
Joined: 8/25/2004
From: USA
Status: offline
|
I believe, which I may not be understanding netxman correctly, but it sounds like the script will pop up the msgbox but the script needs to keep running through and not waiting for a response to the pop up message. This sounds more like a combination of two scripts running. I may be wrong on this, but that's what I got out of netxman's last post.
|
|
| |
|
|
|
 |
RE: Can I bypass MsgBox ? - 8/24/2006 12:49:05 AM
|
|
 |
|
| |
ebgreen
Posts: 4970
Score: 31
Joined: 7/12/2005
Status: offline
|
That is the impression I get as well. If that is the case then 2 scripts would work as a solution. You could also use IE to display the information to the user instead of a MsgBox.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
|
|