Results 1 to 3 of 3
  1. #1
    leoanto is offline Member
    Join Date
    Dec 2010
    Posts
    2
    Rep Power
    0

    Thumbs up java program for running the command prompt commands

    Guys can we run the command prompt commands like(mkdir,rmdir) from a java program..If so give me a sample code.........

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,305
    Rep Power
    20

    Default

    You don't need mto run system commands to do that. Go through the API of java.io.File

    db

    edit Also, it's bad manners to ask a question on a forum, and then not reply to any helpful responses.
    Sending sms from pc to mobile phones
    Last edited by DarrylBurke; 03-19-2011 at 08:08 AM.

  3. #3
    Join Date
    Mar 2011
    Location
    Alphen a/d Rijn, The Netherlands
    Posts
    1
    Rep Power
    0

Similar Threads

  1. Compiling/Running in Command Prompt
    By coke_in_a_can in forum New To Java
    Replies: 12
    Last Post: 05-31-2010, 09:05 AM
  2. running command prompt using java
    By xclaim in forum New To Java
    Replies: 1
    Last Post: 01-14-2010, 03:46 AM
  3. Replies: 6
    Last Post: 04-20-2009, 04:34 AM
  4. problems in running d command prompt commands
    By postaholic066 in forum Advanced Java
    Replies: 1
    Last Post: 09-10-2008, 03:47 PM
  5. Running eclipse java project on command prompt
    By hnmapara in forum New To Java
    Replies: 1
    Last Post: 07-09-2008, 08:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •