long a = System.currentTimeMillis(); File file = new File("d:/1.txt"); file.renameTo(new File("e:/1.txt")); try { file.createNewFile(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } long b = System.currentTimeMillis(); System.out.println(b-a); 原有文件名还在,文件拷贝到新的文件内,156m的文件需要大约3.3秒.