• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Hiding Dos Prompt window

 
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
 
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.

 
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!