my dog learned polymorphism*
The moose likes Java in General and the fly likes new command window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "new command window" Watch "new command window" New topic
Author

new command window

Bill Boyle
Greenhorn

Joined: Aug 10, 2003
Posts: 12
Hello,
The first question has little to do with java, but the second question deals with java.
From the Windows 2000 command line, is there a way to open up a new command prompt? Typing cmd just opens another instance in the same window, can I open up an entire new command prompt window.
Now for the java question. From a java program can I open up a new command prompt? I want to run a client/server program. I want to type:
java myApp
myApp will start two new command prompts, one for server and one for client. This way I can watch the communication between client/server.
I could start the client and server separately, but being a computer scientist I wanted to automate the process.


Thank you,<br />Bill Boyle
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

Originally posted by Bill Boyle:

From the Windows 2000 command line, is there a way to open up a new command prompt?

type in: start cmd

Now for the java question. From a java program can I open up a new command prompt? I want to run a client/server program. I want to type:
java myApp

Being a slacker, I usually just use a batch file to start the client and server, spawning one new command line with the command above.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Joel McNary
Bartender

Joined: Aug 20, 2001
Posts: 1817

Also, if you're lazt like me, "start" works just as well as "start cmd"


Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

Originally posted by Joel McNary:
Also, if you're lazt like me, "start" works just as well as "start cmd"

As Homer Simpson would say: "I've doubled my productivity today!"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: new command window
 
Similar Threads
How to open a hidden command window
How to associate couple of programs, each to its needed java .
Can I Have Two-Way Communication with Sockets with just one Port?
why don't i get the command prompt back when I run my java program from the terminal window?
only one program can run at the moment