Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save globian/0371179d89d0b7249f9527d362d180e0 to your computer and use it in GitHub Desktop.
Save globian/0371179d89d0b7249f9527d362d180e0 to your computer and use it in GitHub Desktop.
data-grip-evaluation
@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