cancel
Showing results forĀ 
ShowĀ Ā onlyĀ  | Search instead forĀ 
Did you mean:Ā 
anom217
Level 8

Get output from LaunchAppAndWait?

Is there a way to get output from LaunchAppAndWait? If, for example, I wanted to find the version of Java on the machine and executed "java -version" from the launch function, how would I get back the output from the command line?

I know you could look this up in the registry, but there are other things I would need that aren't in the registry.
Labels (1)
0 Kudos
(5) Replies
Holger_G
Level 10

I donĀ“t know about that "java-version" console program but maybe you can redirect the output stream into a text file and utilize that text file.

java-version.exe > output.txt
0 Kudos
anom217
Level 8

thanks for the suggestion. Yeah I thought about that, but it seemed unnecessary if there was a more direct way to receive output back from the command line. I'll probably stick to this solution unless I can find something else better.
0 Kudos
Alex1969
Level 4

Hello anom217,

I suggest you'd have a look at "LAAW_PARAMETERS.nLaunchResult"

HTH Alex
0 Kudos
Holger_G
Level 10

Alex1969 wrote:
Hello anom217,

I suggest you'd have a look at "LAAW_PARAMETERS.nLaunchResult"

HTH Alex


ThatĀ“s the return code of the executable but anom217 talks about the output from the application.
0 Kudos
Alex1969
Level 4

Holger_G wrote:
ThatĀ“s the return code of the executable but anom217 talks about the output from the application.


Yes you are right. So i have no further suggestions, sorry.

Alex
0 Kudos