Re: Handling "Press any key to continue..."?
- From: "Remi Arntzen" <Remi.Arntzen@xxxxxxxxx>
- Date: 29 Jun 2005 21:26:51 -0700
quote from class Process documentation (1.5 doc)
"The methods that create processes may not work well for special
processes on certain native platforms, such as native windowing
processes, daemon processes, Win16/DOS processes on Microsoft Windows,
or shell scripts."
A good example is a windows '.bat' file with only "pause" as a command.
The InputStream only shows the "pause" command echoed by the process,
but not the "Press any Key" statement.
If the "press any key" thing is at the end of the program it might just
be best to ignore it and call Process.destroy(). If pressing a key is
truly necessary "to continue..." then that won't be any help.
Good luck.
Remi Arntzen
.
- Follow-Ups:
- Re: Handling "Press any key to continue..."?
- From: Remi Arntzen
- Re: Handling "Press any key to continue..."?
- References:
- Handling "Press any key to continue..."?
- From: Izak van Langevelde
- Handling "Press any key to continue..."?
- Prev by Date: Re: web start jnlp offline
- Next by Date: Re: java.net.SocketException: No buffer space available (maximum connections reached?): recv failed
- Previous by thread: Handling "Press any key to continue..."?
- Next by thread: Re: Handling "Press any key to continue..."?
- Index(es):
Relevant Pages
|