Enlightensoft's Blog

Helping in your each step

  • Categories

  • Authors

How to Execute command line command from java Application

Posted by Pankil Patel on August 22, 2010

Step 1: Write bellow two line in your code wherever you want to execute command from java application as it is executed from command prompt.

String cmd = “your command”;
Runtime.getRuntime().exec(cmd.split(” “));

Gooooooooooooooooooood Luck………………..

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: