Hi all, I've got a nice light-weight Java Swing application that I use to
invoke programs using command line invocation (i.e. winword /n blah.doc). I
use it to open various sorts of word templates, my web browser, an e-mail
application, etc.
However, one application is causing me some problems and that is
cmd.exe
I believe the problem is that the program is actually being run - but the
problem is that my Java program becomes the interface to the command-line -
i.e. once cmd.exe is invoked my program becomes the interface to the command
line.
I would like to open cmd.exe in its own window - just as if I had typed it
into the "run" text field under the Start button (of windows).
Does anyone know another way that cmd.exe can be invoked such that a new
program window is created outside of my Java application?
------
After some google'ing I managed to find reference to redirecting the command
input and output using the device switch to the command.exe program - exp:
command.com C:\WINNT\SYSTEM32\himem.sys
However, this did nothing - in either case, I get this program in my task
manager that maxes out my processor called:
ntvdm
which apparently stands for Microsoft Windows NT Virtual Dos Machine.
So again, my question remains - is there a way to invoke either cmd.exe
and/or command.com in their own window from within another application (my
guess would be that I will have to make use of some add switch to these
programs)?
Thanks,
Novice
Novice - 21 Nov 2003 21:26 GMT
solved.
Thanks anyway,
Novice