Переместить все файлы из папки в другую папку с помощью Java [дубликат]

Possible Duplicate:
Copying files from one directory to another in Java

Как я могу переместить все файлы из одной папки в другую папку с Java? Я использую этот код:

import java.io.File;

    public class Vlad {

        /**
         * @param args the command line arguments
         */
        public static void main(String[] args) {
            // TODO code application logic here
            // File (or directory) to be moved
            File file = new File("C:\\Users\\i074924\\Desktop\\Test\\vlad.txt");

            // Destination directory
            File dir = new File("C:\\Users\\i074924\\Desktop\\Test2");

            // Move file to new directory
            boolean success = file.renameTo(new File(dir, file.getName()));
            if (!success) {
                System.out.print("not good");
            }
        }
    }

но он работает только для одного конкретного файла.

Спасибо!!!

Ответы на вопрос(4)

Ваш ответ на вопрос