2 Replies Latest reply on Nov 20, 2011 10:31 PM by EJP

    Copying some files to Multiple folders in the system

      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?


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