李大教主吧 关注:22贴子:4,909
  • 4回复贴,共1

03-省市联动

只看楼主收藏回复

.


1楼2019-03-12 00:40回复
    public static void main(String[] args) {
    String filePath = "F:\\test\\new";
    File file = new File(filePath);
    File[] listFiles = file.listFiles();
    for (File f1 : listFiles) {
    if (f1.isFile()) {
    System.out.println(f1);
    String fileName = f1.getName();
    if (fileName.endsWith(".zip") || fileName.endsWith(".xlsx")) {
    String onlyName = fileName.replace(".zip", "").replace(".xlsx", "");
    String successPath = filePath + "\\success";
    File f2 = new File(successPath);
    f2.mkdirs();
    f1.renameTo(new File(successPath + File.separator + fileName));
    f1.delete();
    } else {
    String failPath = filePath + "\\fail";
    File f3 = new File(failPath);
    f3.mkdirs();
    f1.renameTo(new File(failPath + File.separator + f1.getName()));
    f1.delete();
    }
    }
    }


    4楼2019-03-24 21:59
    回复
      Evernote ....tools


      5楼2019-03-24 22:40
      回复
        VMware-12.5.9-7535481.exe
        ----------------------------------------------
        CentOS-6.7-i386-bin-DVD1.iso ---> 7


        6楼2019-03-24 22:44
        回复
          Mware Workstation 12序列号:
          5A02H-AU243-TZJ49-GTC7K-3C61N
          VF5XA-FNDDJ-085GZ-4NXZ9-N20E6
          UC5MR-8NE16-H81WY-R7QGV-QG2D8
          ZG1WH-ATY96-H80QP-X7PEX-Y30V4
          AA3E0-0VDE1-0893Z-KGZ59-QGAVF


          7楼2019-03-24 22:45
          回复