Home arrow static arrow Java Programming [Archive] - system command execution.
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - system command execution.
This topic has 1 reply on 1 page.

Posts:130
Registered: 6/8/04
system command execution.  
Aug 5, 2004 4:17 PM



 
I know this will not make my program portable, but how can you execute system commands on windows xp, 2000, 98se, and *nix? Is there a class that will allow access to this?
I'm wanting to write a front end for cdrecord, and a few others.
 

Posts:37,103
Registered: 3/30/99
Re: system command execution.  
Aug 5, 2004 4:20 PM (reply 1 of 1)



 
Look at the various execute methods in Runtime.

http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html

Also, you may want to read this:

http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
 
This topic has 1 reply on 1 page.