Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows Server 2003Windows 2000Windows NTSmall Business ServerVirtual ServerExchange ServerIISHost Integration ServerISA ServerSMSWSUSMOMWindows Media ServerSecurityCertification
Related Topics
SQL ServerMS WindowsMS OfficePC HardwareMore Topics ...

Windows Server Forum / Windows NT / Applications / November 2003

Tip: Looking for answers? Try searching our database.

command.com or cmd.exe being invoked by external application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Novice - 21 Nov 2003 19:48 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.