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. Hi Dear All

How to do strike-out in

View Tutorial          By: Sandeep Mehta at 2012-11-21 06:54:06

2. that was WMC modem i think not Beetel ADSL 2+ mode
View Tutorial          By: chandu at 2008-12-12 22:05:16

3. Thanks for this explanation. I'm not sure whether
View Tutorial          By: Venkatesh Challa at 2013-03-29 04:35:21

4. Hi,
My problem is with daybook. In

View Tutorial          By: Priyesh at 2011-07-06 06:34:33

5. I am getting error in setContentView(R.layout.main
View Tutorial          By: user at 2012-01-13 06:49:42

6. #include<iostream>
#include<conio.

View Tutorial          By: XavioR at 2011-01-31 00:53:11

7. it's good and very best
View Tutorial          By: rushikesh at 2014-02-04 11:28:42

8. Hello, I have a problem
I cant understand s

View Tutorial          By: henry at 2012-01-10 07:53:05

9. Thanks Friend it was very helpfull.
View Tutorial          By: UMAR FAROOQ at 2015-03-01 07:46:43

10. It works , i had a lot of trouble but finally , i
View Tutorial          By: Omer at 2009-06-30 06:05:17