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. good but i needed you to implenent linked list usi
View Tutorial          By: emmanueli at 2011-06-08 10:08:16

2. i can't get getword function.Where is that written
View Tutorial          By: withu at 2010-01-26 23:25:12

3. really great, goes more in depth than cplusplus.co
View Tutorial          By: ss80 at 2008-07-02 06:45:47

4. very simple explanation......
easily unders

View Tutorial          By: saurabh at 2009-04-17 16:02:30

5. somebody help me doing my case study .. its a rese
View Tutorial          By: lady at 2013-12-25 08:21:03

6. I will not contest. Certainly this is extremely im
View Tutorial          By: Bangabee at 2012-11-10 18:17:40

7. @Palla Subramanyam : Your logic is correct, but SO
View Tutorial          By: Roopesh H at 2012-07-27 04:47:48

8. hi i am new to JSP wht is class.forname in the cod
View Tutorial          By: chanti at 2011-05-07 03:02:26

9. can any body explain me how to execute the program
View Tutorial          By: nikhil at 2009-06-04 23:56:11

10. Dear any buddy i use Nokia N73 and connect with Bl
View Tutorial          By: zstranger at 2012-03-29 07:47:02