Results 1 to 9 of 9
  1. #1
    fnoman is offline Member
    Join Date
    Oct 2008
    Posts
    3
    Rep Power
    0

    Default Creating Folder in JAVA and Copying File

    Hi I am new to JAVA
    I want to Create Folder in a particular directory and have to copy some files from one directory to this newly created directory..
    I know couple of things like mkdirs() and like copyFolder() but don't know how should i use them .
    Is there anyone can help me...

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,883
    Rep Power
    25

    Default

    Have you done a search for sample code?
    That would be the first step.
    Then make a simple test program to see how they work.
    Then come back with questions.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Even on this forum you can find such a similar questions. At least search this forum. And Google too.

  4. #4
    fnoman is offline Member
    Join Date
    Oct 2008
    Posts
    3
    Rep Power
    0

    Default

    I want to know how should I use mkDirs(); and copyFolder();
    I couldn't find any sample program...

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

  6. #6
    CJSLMAN's Avatar
    CJSLMAN is offline Moderator
    Join Date
    Oct 2008
    Location
    Mexico
    Posts
    1,159
    Rep Power
    8

    Default Come on...

    I Googled "Java MkDir()" and the first result has a perfect example:
    mkdir examples : File Commands**File Input Output**Java
    Come on... put some effort in it
    CJSL
    Chris S.
    Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.

  7. #7
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

  8. #8
    fnoman is offline Member
    Join Date
    Oct 2008
    Posts
    3
    Rep Power
    0

    Default

    thanks alot buddy.. next time I try my level best to solve problem .. If I couldn't I will ask ..

  9. #9
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Yes that's fine. It's better make an attempt by yourself first, because in that way you can learn a lot than someone else explain and helping on your question. Best of luck!

Similar Threads

  1. code to create a folder in java
    By radhika123 in forum New To Java
    Replies: 7
    Last Post: 07-21-2011, 12:21 PM
  2. how to access shared file/folder in LAN
    By ksheetiz in forum Networking
    Replies: 1
    Last Post: 05-24-2008, 05:54 AM
  3. Replies: 13
    Last Post: 01-09-2008, 07:51 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
  •