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"); "
"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.'s very nice..can you send me the version fo
View Tutorial          By: daniel81 at 2010-02-11 09:19:36

2. Not able to store on SD card.But storing on phone
View Tutorial          By: kusuma at 2015-07-25 13:42:17

3. thnx, 4 ur explanation, that was usefl

View Tutorial          By: some1 at 2009-04-28 03:26:28

4. Thanks. What datatype can we give to a variable St
View Tutorial          By: Bafokeng Lebesa at 2012-11-27 12:35:40

5. how to run file IO program?
isn't that must

View Tutorial          By: farah at 2009-08-24 02:41:59

6. This tutorial was absolutly amazing!

View Tutorial          By: Anita at 2009-05-09 06:29:21

7. write a program to prepare the student marks for s
View Tutorial          By: belgreen frodo at 2015-03-31 05:41:05

8. Where should the file be placed? How do I know wh
View Tutorial          By: Anon at 2009-07-23 14:08:17

9. voire pluse a des command java
View Tutorial          By: lahcine moubarek at 2009-02-16 01:59:17

10. i am run code this rectify this error please some
View Tutorial          By: indiran at 2010-01-28 01:45:56