Results 1 to 2 of 2
- 05-31-2009, 07:29 PM #1
Member
- Join Date
- Nov 2008
- Posts
- 22
- Rep Power
- 0
Execute external program from java
Hi all,
got another question for you guys ...
i want to run an external executable from my java program at the click of a button and then resize and reposition the external programs window to user defined cordinates.
example : program :c:\users\ankit\notepad.exe
width : 200px
height : 400px
x,y : 100,100
how would i do this ? any help is appreciated.
thanks / ankit
- 06-01-2009, 03:58 AM #2
Senior Member
- Join Date
- Mar 2009
- Posts
- 552
- Rep Power
- 5
positioning I have no idea. Most likely it is not possible, as it is not part of the Java program. As for running an executable. Runtime.getRuntime().exec("MyExecutable.exe")
For command line programs and retrieving program exit codes, see this lengthy thread
Some simple commands for windows and possibly other OS's that may work for you:
cmd start MyApp.exe
cmd /c start MyApp.exeLast edited by Singing Boyo; 06-01-2009 at 04:00 AM.
If the above doesn't make sense to you, ignore it, but remember it - might be useful!
And if you just randomly taught yourself to program, well... you're just like me!
Similar Threads
-
Execute external file/program
By sirwiggles in forum New To JavaReplies: 3Last Post: 04-21-2009, 11:35 PM -
How to execute external EXE?
By 2bGeek in forum AWT / SwingReplies: 3Last Post: 02-21-2009, 12:59 AM -
How to execute an External Program through Java program
By Java Tip in forum java.ioReplies: 0Last Post: 04-04-2008, 02:40 PM -
Using Runtime to execute external commands
By Java Tip in forum Java TipReplies: 0Last Post: 02-05-2008, 09:14 AM -
How to execute an External Program through Java program
By JavaBean in forum Java TipReplies: 0Last Post: 10-04-2007, 09:33 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks