views:

816

answers:

1

I would like to have a non-modal alert box called form a batch file. Currently I am using vbscript to create a modal alert box:

>usermessage.vbs ECHO WScript.Echo^( "Generating report - this may take a moment." ^)
WSCRIPT.EXE usermessage.vbs

But I would like to proceed with the script (generating the report) without waiting for user interaction. How can I accomplish this? I don't care if it's vbscript or not - I just want it to work from my batch script (in Windows XP).

+1  A: 
RBerteig
Sorry, but you are assuming that cmd.exe is too much like a *nix shell. Each batch file invoked at a command prompt is interpreted by that very copy of cmd.exe and can indeed change the environment for other commands. That is why setlocal was added. You are correct if a batch file is invoked from explorer, however. This has been true since DOS 1.0 and COMMAND.COM, and remains true at least in XP.
RBerteig