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



Ask a Question

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. thanks brother
View Tutorial          By: shakeel at 2012-09-12 16:21:03

2. /* getword: get next word or character from input
View Tutorial          By: Vinod S at 2011-12-02 07:53:52

3. hi....can anybody help me....
i need the co

View Tutorial          By: nithin ms at 2007-02-23 08:34:01

4. It's Very Nice. Particularly:
DO use memmov

View Tutorial          By: Rasmi Ranjan Nayak at 2010-01-12 04:40:18

5. sir,i m doing ME/CSE.i want to know more informati
View Tutorial          By: m.rajalakshmi at 2011-07-27 05:20:44

6. hi I am execute this code But message can't send <
View Tutorial          By: Sudhir Patil at 2011-02-01 10:28:28

7. Good Work ...
View Tutorial          By: Sagan at 2013-08-13 13:38:30

8. I dont want my client using my application to do a
View Tutorial          By: zaffa at 2011-07-27 06:52:09

9. Good example
View Tutorial          By: Lahiru at 2012-04-09 05:24:21

10. Dear Friends, I get the following exception...

View Tutorial          By: NT.Jay at 2011-10-06 05:33:09