Handling "Press any key to continue..."?



My java program executes an old DOS program for file conversion, which
is called by something like Runtime().getRuntime().exe("convert infile
outfile").

However, the 'convert' program asks its user to 'Press any key to
continue..." My first guess was to just write any character to the
process' InputStream, but this doesn't work; this is not specific for
java, as something like "convert infile outfile < anyKeyFile" doesn't
work from a DOS box either. Any clue how to simulate the pressing of any
key here?

--
Grinnikend door het leven...
.



Relevant Pages

  • [PATCH] Fix incompatibility with versions of Perl less than 5.6.0
    ... 5.6.0 also introduced the pragma 'use warnings'. ... foreach my $file { ... local *INFILE; ... local *OUTFILE; ...
    (Linux-Kernel)
  • Re: Quick n Dirty Unpacking of COMP-3?
    ... > First thing I do is look for FileAid jobs I have that do something ... it can reformat based on COBOL layouts. ... > OPEN INPUT INFILE OUTPUT OUTFILE. ...
    (comp.lang.cobol)
  • Re: Quick n Dirty Unpacking of COMP-3?
    ... > First thing I do is look for FileAid jobs I have that do something ... it can reformat based on COBOL layouts. ... > OPEN INPUT INFILE OUTPUT OUTFILE. ...
    (comp.lang.cobol)
  • Re: Layout Hell.: leave it
    ... LW>> files record layout; everything else in that program would not need ... and with the REPLACING clause for the output file; ... 000070 SELECT INFILE ... 000110 SELECT OUTFILE ...
    (comp.lang.cobol)
  • Re: Importing data into a table
    ... Use Open and Line Input# to filter the original text file into a temp ... dim inFile as integer ... dim outFile as integer ... dim readText as string ...
    (microsoft.public.access.modulesdaovba)