2 Replies Latest reply: Nov 20, 2011 4:31 PM by EJP RSS

    Copying some files to Multiple folders in the system

    901184
      I need to write a program to copy some files from a folder to other folders on the systems.

      I wrote a java program which creates a new thread for each destination folder. Each thread create a InputStream for each file and write it to destination folder [Using BufferedOutputStream(new FileOutputStream(targetFile))].

      But it takes much more time then expected.

      Is there any other way so that it takes less time?


      Thanks,
      Paras

      Edited by: user12233794 on Nov 20, 2011 11:23 PM