Forked from giang-pham/gist:75bce9367191ac6842deabc9920b1d66
Created
July 15, 2019 08:32
-
-
Save globian/0371179d89d0b7249f9527d362d180e0 to your computer and use it in GitHub Desktop.
data-grip-evaluation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
SET "dgFolder=%UserProfile%\.DataGrip2016.1" | |
SET "evilFile=%dgFolder%\config\eval\DataGrip2.evaluation.key" | |
SET "evilBakFile=%dgFolder%\config\eval\DataGrip2.evaluation.key.bak" | |
echo exorcising evil spirit in key | |
if exist "%evilFile%" ( | |
move /y "%evilFile%" "%evilBakFile%" | |
) else ( | |
echo no evil detected | |
) | |
SET "optionFolder=%dgFolder%\config\options | |
SET "optionFile=%optionFolder%\options.xml" | |
SET "optionFileBak=%optionFolder%\options.xml.bak" | |
echo; | |
echo exorcising evil spirit in options.xml | |
move /y "%optionFile%" "%optionFileBak%" | |
type "%optionFileBak%" | findstr /v evlsprt > "%optionFile%" | |
SET "registryPath=HKEY_CURRENT_USER\Software\JavaSoft\Prefs\jetbrains\datagrip" | |
echo; | |
echo exorcising evil spirit in registry | |
%SystemRoot%\system32\reg.exe delete %registryPath% /f | |
echo Evil Spirit is gone! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment