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



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. Nice Example. Gives very clear idea.
View Tutorial          By: Larsen at 2013-09-14 02:29:24

2. i always encounter a problem every time we discuss
View Tutorial          By: sukira 18 at 2009-08-29 03:25:23

3. If one can't use English grammar correctly and wit
View Tutorial          By: Java Man at 2011-12-09 06:04:14

4. it is not working
View Tutorial          By: shaishav at 2013-06-20 08:03:06

5. Hi, I have one problem in spinner items. I want to
View Tutorial          By: soodi at 2011-10-18 18:15:58

6. can anybode tell me how can i make my own bluetoot
View Tutorial          By: Prasenjit at 2013-10-11 06:57:13

7. give me some logics for programs as soon as possib
View Tutorial          By: nari at 2011-12-07 18:28:03

8. please help me how to run this program..
View Tutorial          By: khairie at 2009-12-01 22:43:08

9. syntax of java program in looping statement
View Tutorial          By: lokesh at 2009-03-25 06:57:56

10. Ho,i have created read and write program on differ
View Tutorial          By: niranjan at 2015-08-26 09:02:57