how to get result from exe file using java

Thread Tools Search this Thread
Top Forums Programming how to get result from exe file using java
# 1  
Old 05-24-2009
how to get result from exe file using java


i have problem getting result from exe file using java

i have exe file (inducer.exe)
when i open in command line it i have to put two inputs
function name
file name

i had make bat file which work OK until opening the program
bat file contain
inducer.exe //OK with this it open the exe program
function name//after opening the program it does not write the function name
file name//also dose not write file name

the bat file work well until opening the exe program

is there any way to make bat file write the exe program parameters
or can i write that parameters using java and get result

# 2  
Old 05-24-2009
I would thing that if you want to do this with java the best way would be to create a Process using the ProcessBuilder class. If you need to interact with the program after it starts you should then use a StreamReader and StreamWriter to interact with each of the objects returned by getErrorStream(), getInputStream() and getOutputStream() from your Process.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Any file to differentiate JAVA JRE and JAVA JDK

Folks, Any idea of where can I find a specific file to differentiate JRE and Java JDK installed on AIX platform :cool: (3 Replies)
Discussion started by: dellcisco
3 Replies

2. Shell Programming and Scripting

extract .exe file

guys! any clue how to extract .exe file in linux? Regards, Kiran (3 Replies)
Discussion started by: dddkiran
3 Replies

3. Programming

Help: Run Java Command Line, Send Result to PHP?

EDIT: Sorry for the post, my good friend Google helped me out after some good searching! (0 Replies)
Discussion started by: tguillea
0 Replies

4. Programming

how can I get to know what threads run within process java.exe on windows

I am writing java application on windows. There are more than 100 threads run within java.exe. I want to know what threads run within process java.exe so that I can find out if there are abnormal java threads. (4 Replies)
Discussion started by: mika
4 Replies

5. Shell Programming and Scripting

java Command result to file

I would like to send results as log to a file on unix. When I try to run following command, no command_result file occured. I can't see logs. How can I put the results to a file with java command on unix ? java -classpath . HelloWorld $parameter>command_result (2 Replies)
Discussion started by: senem
2 Replies

6. Shell Programming and Scripting

Outputting formatted Result log file from old 30000 lines result log<help required>

Well I have a 3000 lines result log file that contains all the machine data when it does the testing... It has 3 different section that i am intrsted in 1) starting with "20071126 11:11:11 Machine Header 1" 1000 lines... "End machine header 1" 2) starting with "20071126 12:12:12 Machine... (5 Replies)
Discussion started by: vikas.iet
5 Replies

7. Programming

how To edit exe to insert a serial no wich can be usd by runing exe

At time of installation I have to open the resource. and i have to insert a string serial number in the exe. please provide me code to edit the exe (in solaris) to insert a serial number which can be used by exe at run time. (6 Replies)
Discussion started by: ssahu
6 Replies

8. UNIX for Advanced & Expert Users

.exe file

Hello all, how to run windows .exe file in Linux and vice the versa (3 Replies)
Discussion started by: rajashekaran
3 Replies

9. Programming

about exe file

Hi, I am using dual operating system(windows/linux) in my system.Now the problem is i want to run my .exe(of c languege) before system ask for loading of operating system.Like my system ask for linux or dos.I want to run my .exe before this. Tell me how can i use this. (2 Replies)
Discussion started by: at_renai2001
2 Replies
Login or Register to Ask a Question

Featured Tech Videos