I have created many vbs scripts in the past that when double clicked, run within the command prompt window and I can see the output and progress.
I am now running the same scripts on a new server and instead of the command prompt window opening, I am getting the windows message window, with the typical OK button, which I have to press to proceed. This is very annoying.
What do I need to change to make these run within the command prompt window?
I read somewhere that CScript would do this, but as I said, this works as desired on other windows boxes, why not this one?
Set wShell = CreateObject("WScript.Shell")
WScript.Echo "hello world"
wshell.run "%comspec% /c AddWindowsUser.bat " & "hello world", 0, True
Wscript.Echo "user added" & vbcrlf & vbcrlf