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



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. //EXAMPLE OF NESTED IF*****
//FIND OUT BIGE

View Tutorial          By: Amitava Misra at 2009-11-03 06:11:33

2. Thank you very much for your help,
this co

View Tutorial          By: AA at 2011-09-09 14:24:45

3. Hi,

Could you forward me the code a

View Tutorial          By: vikas at 2011-06-22 07:02:48

4. Thanks a lot man with the server -side code.
View Tutorial          By: bot at 2011-12-03 15:04:28

5. My friend, How to user ArrayList?
View Tutorial          By: Joao Neto at 2009-06-04 06:28:17

6. What is this....for simple question every one was
View Tutorial          By: Kaify at 2011-07-27 21:35:52

7. Not bad,but need some implementation
View Tutorial          By: surjeet katwal at 2010-01-19 04:41:15

8. Dudes

I used the abov

View Tutorial          By: Nithin p at 2013-01-06 06:54:33

9. can you help me in codings for get an output like
View Tutorial          By: Sudhar at 2011-08-24 05:47:53

10. I am quite new to Struts and this article, quite c
View Tutorial          By: Jenghiz at 2010-01-27 23:19:48