windows系统PhpStorm、Pycharm无限试用30天的方法

windows系统PhpStorm、Pycharm无限试用30天的方法

操作流程

  • 1、打开git bash
  • 2、cd /c/workspace
  • 3、sh clear_windows_tools.bat

以pycharm为例子(删除本地文件,删除注册表即可以无限试用)

1、删除本地文件,通过写shell脚本

#!/bin/bash
echo "1.删除本地pycharm中的配置文件"
rm -rf C:\Users\admin\AppData\Roaming\JetBrains\PyCharm2021.1\eval
rm -rf C:\Users\admin\AppData\Roaming\JetBrains\PyCharm2021.1\options\other.xml

2、删除对应的注册表

还是采用批处理器bat删除方便点,文件和注册表一起删除,shell删除不了注册表 phpstorm和pycharm ,pycharm测试通过

创建:clear_windows_tools.bat,内容如下:

REM Delete eval folder with licence key and options.xml which contains a reference to it
echo %0 runing %date:~0,10% %time:~0,2%:%time:~3,2%:%time:~6,2% >> C:\workspace\run.log
for %%I in ("PyCharm","PhpStorm") do (
for /d %%a in ("%APPDATA%\JetBrains\%%I*") do (
rd /s /q "%%a\eval"
findstr /v /i "evlsprt" %%a\options\other.xml > %%a\options\other1.xml
del /q "%%a\options\other.xml"
ren %%a\options\other1.xml other.xml
)
)

REM Delete registry key and jetbrains folder (not sure if needet but however)
reg delete "HKEY_CURRENT_USER\Software\JavaSoft\Prefs\jetbrains\pycharm" /f
reg delete "HKEY_CURRENT_USER\Software\JavaSoft\Prefs\jetbrains\phpstorm" /f

胡梦旭博客
请先登录后发表评论
  • latest comments
  • 总共0条评论