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. Can you give some examples of do while & pleas
View Tutorial          By: mhilan at 2011-09-01 04:54:13

2. I tried running this code.. I used motorazr v3i as
View Tutorial          By: Arvind at 2009-02-14 10:24:37

3. Hi Sir...
sir i am working on Speech to Tex

View Tutorial          By: p gopi at 2013-02-11 09:27:07

4. This is the coding that I wanted...
This is

View Tutorial          By: Damith at 2012-05-16 17:26:10

5. i should say, a lot of thank you because of this s
View Tutorial          By: merven at 2009-03-17 09:45:39

6. hi please help me out.. how to use this card for r
View Tutorial          By: sasivarnan at 2011-04-27 15:01:12

7. Hai,
I have the same problem *** time out a

View Tutorial          By: Anitha at 2009-04-20 03:12:23

8. In the above example..where you make the GC1 objec
View Tutorial          By: prasad at 2014-12-11 11:12:28

9. Hi,
What should be done to correct the erro

View Tutorial          By: Raymond at 2011-03-07 08:51:54

10. example is good but in more deatin & advanteg
View Tutorial          By: smita at 2010-08-08 06:09:09