Results 1 to 2 of 2
- 01-14-2010, 03:39 AM #1
Member
- Join Date
- Nov 2009
- Posts
- 4
- Rep Power
- 0
running command prompt using java
hi guys,
i am still quite new to programming. may i know how to run a bat file or command in the background of the application
without showing the command prompt.
right now i am able to do it, however it will still pop up the command prompt
the following is my coding.
try {
String command = "cmd /C start C:/project/mkiosk/lib/createMovieJar.bat ";
Runtime rt = Runtime.getRuntime();
pr = rt.exec(command);
} catch (IOException e) {
e.printStackTrace();
}
- 01-14-2010, 03:46 AM #2
Member
- Join Date
- Nov 2009
- Posts
- 4
- Rep Power
- 0
Similar Threads
-
Command Prompt Java
By kelvinsmj in forum New To JavaReplies: 8Last Post: 11-27-2009, 10:30 AM -
[SOLVED] Running java programs from the command prompt
By wiz0r in forum New To JavaReplies: 6Last Post: 04-20-2009, 04:34 AM -
Running applet from command prompt
By niteshwar.bhardwaj in forum Java 2DReplies: 1Last Post: 03-12-2009, 08:10 AM -
problems in running d command prompt commands
By postaholic066 in forum Advanced JavaReplies: 1Last Post: 09-10-2008, 03:47 PM -
Running eclipse java project on command prompt
By hnmapara in forum New To JavaReplies: 1Last Post: 07-09-2008, 08:29 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks