Comment on Tutorial - Execute system commands in a Java Program By Rajan



Comment Added by : saranya

Comment Added at : 2014-10-30 05:36:36

Comment on Tutorial : Execute system commands in a Java Program By Rajan
Runtime rt=Runtime.getRuntime();
String cmd[]={"cmd.exe", "/C", "c:\\windows\\paint.exe"};
rt.exec(cmd);


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. I am getting this error with Minecraft; Feed the B
View Tutorial          By: LadyKianna at 2013-03-11 05:52:54

2. it is perfectly working...
View Tutorial          By: Venkatesh at 2014-09-21 06:54:39

3. No main class found
need favour
help

View Tutorial          By: Mudasir at 2012-11-10 17:09:57

4. thanks alot steven for the code. i'm try to automa
View Tutorial          By: Roger at 2011-05-17 17:33:07

5. good
View Tutorial          By: sasikiran at 2008-03-30 23:33:24

6. really very excellent example....ThanQ...:)
View Tutorial          By: Tulasi at 2010-08-17 00:41:21

7.
View Tutorial          By: pmprash at 2009-12-22 01:15:33

8. thanx nice explanation...
View Tutorial          By: vignesh at 2012-07-15 20:12:22

9. i am getting the following error when i ran this p
View Tutorial          By: nancy kapoor at 2008-10-07 14:26:21

10. Hi i copied the same code n change the comport no
View Tutorial          By: Nidhi Puri at 2010-12-04 00:55:29