![]() |
run a exe file by java code
I have written a simple html editor in java. I have to open my html page in internet explorer when I click preview button in my application. to open my html page in internet explorer programmatically? any one can help me
|
Re: run a exe file by java code
If its a Windows system where the Java application runs, use this
Code: Java
|
Re: run a exe file by java code
can u explain little bit more? my html file path is "C:\myPage.htm". when I type this ide show a error illegal escape charectar.
|
Re: run a exe file by java code
Code: Java
You have to escape the slash in the path! |
Re: run a exe file by java code
Thank you very much for ur help. I like to use applications programatically. for an example I have to open a word file and draw a line programatically. Can I do this task by java or any programming language?
|
Re: run a exe file by java code
|
Re: run a exe file by java code
thanx
|
Re: run a exe file by java code
Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + "C:\\sample.exe");
using this code I have open an exe file from java.... Now I want to open the same exe by passing two parameters....open a C source code and a file to redirect the output.... How can I do that? |
Re: run a exe file by java code
In this coding to execute exe from java file.
Code:
import java.lang.*; |
Re: run a exe file by java code
Hello,
Just check your spelling mistake 'notpad.exe' change it notepad.exe bye |
| All times are GMT +5.5. The time now is 21:19. |