Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!
  • 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
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

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.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic