Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hiding Dos Prompt window  RSS feed

 
raj NZ
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am running some commands on the DOS prompt via

Process p = r.exec("cmd.exe /C " + aCommand);

is there any way to hide the dos prompt window while this
is being run.

Cheers
Raj
 
jefff willis
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I ran this and didn't get a DOS window that popped up. I don't have a great deal of experience with the Runtime class. Maybe you are doing something that is not in this application.

 
Mattias Arthursson
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This might have to do with which jvm version you are using. I was experiencing the same thing a while ago with Java 1.3.x, but switching to java 1.4.x made the dos window go away.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!