指定一个文件夹,用于批量重命名文件,或者定位到现有的文件夹中都可以。

	File file = new File();
	String[] list = file.list();
	String coonet = " 新三国";
	
	for(int i=0; i<list.length;i++){
		File document = new File(file.getAbsoluteFile(),list[i]);
		document.renameTo(new FIile(file.getAbsoluteFile,connet+(i+1)));
	}

使用java批量重命名文件!

相关文章:

  • 2021-06-27
  • 2021-11-18
  • 2021-11-18
  • 2022-12-23
  • 2021-12-02
猜你喜欢
  • 2022-12-23
  • 2021-06-09
  • 2022-01-15
  • 2021-08-09
相关资源
相似解决方案