I need some help bringing the popup window in this script to the foreground. What happens is the shutdown window pops up and then when this script executes the window which it diplays is pushed behind the Shutdown window. So how can I bring it to the front. I want me make things easy on the user. Here's the code:
thanks for the help
Code:
' Abort Script for Application Reboot
Dim WshShell, BtnCode
Set WshShell = WScript.CreateObject("WScript.Shell")
BtnCode = WshShell.Popup("Has your machine been recently re-installed by a BGCEV IT person?", 35, "", 4 + 32)
Select Case BtnCode
case 6 WScript.Echo("OK, We will allow the reboot to occur. It's necessary to install new applications")
case 7 Call WSHShell.Run("cmd.exe /c %systemroot%\system32\shutdown.exe -a")
End Select
thanks for the help