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



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. Thanks for a nice article !!!
View Tutorial          By: Piyush Sharma at 2011-12-15 12:24:06

2. i want source code of Send SMS on Mobile by Net.
View Tutorial          By: Ankit Patel at 2011-07-05 08:43:14

3. Solution for javax.comm.NoSuchPortException

View Tutorial          By: Manjunath Suresh Vaidya at 2011-03-09 04:46:57

4. Nice work sir... it was very easy to understand ke
View Tutorial          By: AsadUllah at 2012-11-20 19:05:29

5. Hello sir pls send me
com.sun.speech.freett

View Tutorial          By: sana at 2011-12-23 16:16:24

6. I have maked all you said and when I open jsp I am
View Tutorial          By: ismail at 2011-03-16 04:08:53

7. Comment: yes i understood too:D:D perfect and brei
View Tutorial          By: eman at 2009-04-21 23:57:26

8. thanks for suppporting us
View Tutorial          By: sonia at 2010-11-29 00:46:56

9. I really helped with this tutorial.
In case

View Tutorial          By: maya at 2008-07-30 00:35:51

10. Very good explanation specially overlapped memory
View Tutorial          By: MANISH RASTOGI at 2010-06-22 05:44:07