Re: Display a pop-up Dialog Box
From: Torgeir Bakken \(MVP\) (Torgeir.Bakken-spam_at_hydro.com)
Date: 08/12/04
- Next message: Matthias Tacke: "Re: batch file help"
- Previous message: Matthias Tacke: "Re: administrator password reset/recovery?"
- In reply to: zo_at_gtz.pbz.nh: "Re: Display a pop-up Dialog Box"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 12 Aug 2004 11:42:54 +0200
Michael Bednarek wrote:
>>You can hide the command prompt if you run PopUp.exe from
>>a VBScript:
>>
>>'--------------------8<----------------------
>>' PopUp.exe is available at
>>' http://gearbox.maem.umr.edu/batch/f_w_util/Frank_Westlake-Freeware.html
>>sPopCmd = "F:\tools\FrankWestlake\PopUp.exe"
>>Set oShell = CreateObject("WScript.Shell")
>>oShell.Run sPopCmd & " /OK /T ""My title"" /M ""My message""", 0, False
>>oShell.Run sPopCmd & " /OK /T ""My title"" /M ""My message2""", 0, False
>>'--------------------8<----------------------
>
>
> I would have thought that once you start using VBS, a PopUp command line
> tool like Frank's becomes obsolete, given that methods like MsgBox or
> PopUp are available within VBS.
Hi
Not in all cases. MsgBox will halt your VBScript to someone press
the OK button, and the same goes for PopUp without a timeout.
If you want a message box on the screen that doesn't halt your script
and that is visible until the user press OK, there is nothing builtin
in VBScript for this (unless you launch secondary "helper" scripts).
-- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: http://www.microsoft.com/technet/scriptcenter/default.mspx
- Next message: Matthias Tacke: "Re: batch file help"
- Previous message: Matthias Tacke: "Re: administrator password reset/recovery?"
- In reply to: zo_at_gtz.pbz.nh: "Re: Display a pop-up Dialog Box"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|