Last active
March 16, 2018 09:33
-
-
Save u01jmg3/845edfc1842fa0b79920f407c3846fff to your computer and use it in GitHub Desktop.
Fix dictionaries (SourceTree bug)
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 regPath="HKEY_CURRENT_USER\Software\Microsoft\Spelling\Dictionaries" | |
set regName="_Global_" | |
set truncate=true | |
if "%truncate%"=="true" ( | |
reg ADD %regPath% /t REG_MULTI_SZ /v %regName% /d "C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Office\16.0\be70806f\Proofing\RoamingCustom.dic" /f | |
) else ( | |
for /f "tokens=2*" %%a in ('REG QUERY %regPath% /v %regName%') do set "regData=%%~b" | |
reg ADD %regPath% /t REG_MULTI_SZ /v %regName% /d "%regData%" /f | |
) |
Author
u01jmg3
commented
Mar 13, 2018
•
- Run as a scheduled task every hour on the hour (Windows)
- https://stackoverflow.com/questions/41486308/spellchecker-error-source-tree/41998428#answer-41540406
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment