Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-10-2008, 05:45 PM
Member
 
Join Date: Sep 2008
Posts: 2
postaholic066 is on a distinguished road
problems in running d command prompt commands
I've been using Runtime.getRuntime().exec(command) to fire command prompt commands in my java prog. The following s a template of the code I'm usin :-

//to open windows explorer and IE
String[] command = {"cmd", "/c", "explorer.exe", "&", "iexplore"};
Process p = Runtime.getRuntime().exec(command);
this opens the explorer but not IE
Any mistakes??
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-10-2008, 05:47 PM
Member
 
Join Date: Sep 2008
Posts: 2
postaholic066 is on a distinguished road
GOT IT!!
din noe the start to be added..
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to run windows command prompt in java parogram ? indikasampath2000 AWT / Swing 4 12-16-2008 08:51 AM
Running eclipse java project on command prompt hnmapara New To Java 1 07-09-2008 10:29 AM
accessing command prompt using java (netbeans)... kureikougaiji New To Java 6 06-27-2008 05:01 PM
Problem during executing Command Prompt keshari Advanced Java 4 06-05-2008 06:06 AM
problem when I try to compile a program from command prompt osval Advanced Java 2 08-06-2007 11:16 PM


All times are GMT +3. The time now is 09:06 AM.


VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org