• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

new command window

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 1844
Eclipse IDE Ruby Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also, if you're lazt like me, "start" works just as well as "start cmd"
 
Joe Ess
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!"
 
Yes, of course, and I accept that blame. In fact, i covet that blame. As does this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic