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

Java program to get location meta data from an image

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

Archived Comments

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

2. #include<stdio.h>
void main(){

View Tutorial          By: niru at 2012-07-21 07:26:27

3. Finally! You enlighted me in a small problem: it w
View Tutorial          By: Fernando Martin at 2011-02-25 12:54:58

4. I tried to create an object on my 6th code but i a
View Tutorial          By: AARON VICUÑA at 2009-03-24 05:20:24

5. how to show text in tab menu & when i selecte
View Tutorial          By: hina siddiqui at 2011-08-09 07:38:14

6. that's what I've been looking for!!!!!!!!!!!!!!!!!
View Tutorial          By: bibi at 2014-12-28 20:43:56

7. Thanks for the tips.

I hesitated to

View Tutorial          By: Dick at 2011-10-09 15:21:50

8. haii , i am fully happy by searching all component
View Tutorial          By: AJEET KUMAR DALEI at 2011-04-23 21:20:00

9. nice
View Tutorial          By: rida at 2010-07-03 22:49:04

10. You are using "this" to start to the thr
View Tutorial          By: sumit at 2014-10-30 08:14:55