
running console app in same console
Hi,
I'm running a console script, and from within it starting another console
app. At the moment it creates a new window for the new app, but is there
any way to make it run within the same app?
cscript first.js
first.js--
WScript.Echo( "in 1" );
var shell = new ActiveXObject( "WScript.Shell" );
shell.Run( "cscript second.js", 1, true );
second.js--
WScript.Echo( "in 2" );
So I want to see in the same console window...
in 1
in 2
However at the moment I see
in 1
in the first window, and then another window created and
in 2
in that.
Any ideas for how to get a sub process running sharing the same console?
Brodie.