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

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

Java program to check if user input is an even number

Archived Comments

1. thanks for your tutorial, but how to us it?

View Tutorial          By: Desman Gea at 2014-07-18 16:54:41

2. I'm a beginner, and I was told it is a good practi
View Tutorial          By: Nelson at 2009-08-17 09:13:28

3. I have try this code.
Code has Run succeefu

View Tutorial          By: Avinash at 2010-06-07 05:38:26

4. Thank you sir this is a nice example/
View Tutorial          By: Techbymak at 2013-01-08 09:51:54

5. Can you please send me the full code in sending an
View Tutorial          By: jen at 2008-05-28 00:22:21

6. Hi Maybelline, This is the <a href="http:/
View Tutorial          By: Daniel Malcolm at 2008-08-21 06:57:31

7. good going java samples
View Tutorial          By: Rajesh at 2010-08-17 03:36:12

8. Does not work.
View Tutorial          By: Hallo at 2012-10-25 09:50:05

9. it worked fine in solving an algorithm assingment.
View Tutorial          By: tunde bello at 2009-11-05 06:31:28

10. hi i need moving clock javascript code...please se
View Tutorial          By: madhavan at 2008-10-19 21:59:45