Force messagebox to foreground
问题 I've got a VBScript that calls a Visual FoxPro Instance and runs a VFP program. Part of this program produces a messagebox. However, if my script is run from the Windows GUI (rather than a Command Prompt), then the message box produced doesn't necessarily come to the foreground. In VBScript I have the following code: Set oVFP = CreateObject("VisualFoxPro.Application") oVFP.DoCmd("Messagebox('Hello World')") Set oVFP = Nothing When I run this script from a DOS prompt, the message box pops to