Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

new command window

 
Bill Boyle
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Joe Ess
Bartender
Posts: 9279
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, if you're lazt like me, "start" works just as well as "start cmd"
 
Joe Ess
Bartender
Posts: 9279
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic