[Code] SU8 Cleanup User Toolbar entries
-
NO WARRANTY : USE AT YOUR OWN RISK
Speeds up SketchUp 8 start times when the toolbar registry entries become bloated.
I updated the command file a bit (from Thomas' 2 liner):
(1) saves current WD and switches to the User Home dir.
(2) first deletes an old file if it exists (because the REG QUERY appends to the file.)
(3) Echos the number of lines containing keys to be deleted.
(4) Accepts a "view" argument that will open the generated key file in the system's default text application, at the end of processing.
(5) Switches back to the previous directory.@echo off set olddir= %CD% cd %USERPROFILE% if exist su_reg_keys.txt del su_reg_keys.txt reg query "HKCU\Software\Google\SketchUp8" | find "ToolbarsUser" >> su_reg_keys.txt echo . echo SketchUp Toolbar Registry entries to be deleted; find /C /I "HKEY" su_reg_keys.txt echo . for /f %%k in (su_reg_keys.txt) do ( reg delete %%k /f ) REM Open file in default text application REM if "view" param is passed; if %1.==view. su_reg_keys.txt if %1.==VIEW. su_reg_keys.txt cd %olddir% set olddir=
Copied from another forum, hidden on page 2 of a topic thread.
Advertisement