Comment on Tutorial - Execute system commands in a Java Program By Rajan



Comment Added by : rudhin

Comment Added at : 2013-05-10 12:32:57

Comment on Tutorial : Execute system commands in a Java Program By Rajan
Thank you very much sir.
One can simply execute linux commands too this way
just need to change :
"Process p=Runtime.getRuntime().exec("cmd /c dir"); "
to
"Process p=Runtime.getRuntime().exec("ls"); " // or something else
thanks once again.


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Thank you for this. I am a beg and this is making
View Tutorial          By: mac at 2011-08-23 13:47:15

2. nice example and this is very use ful
View Tutorial          By: jyothi at 2011-02-18 22:24:51

3. Your code will not execute using above main method
View Tutorial          By: Gajanan Patil at 2012-05-09 04:42:29

4. Hi,

Can we use this fix.php on the

View Tutorial          By: Chriz at 2010-07-05 09:22:57

5. your code error

because i try to ru

View Tutorial          By: Nasser at 2013-01-09 10:33:34

6. I have no mounted the sd card, and I have the &quo
View Tutorial          By: Cgamboa at 2012-12-01 06:39:14

7. thats is really too gud... very easy example to un
View Tutorial          By: radhika at 2011-11-27 16:32:25

8. good tutorial for beginners..........
View Tutorial          By: Madarapu naveen at 2011-06-18 11:19:50

9. thks for help...
View Tutorial          By: Peps at 2010-01-05 02:28:52

10. </application>
<uses-permission an

View Tutorial          By: saurabh at 2012-01-17 05:00:21