sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    [Code] SU8 Cleanup User Toolbar entries

    Scheduled Pinned Locked Moved Developers' Forum
    1 Posts 1 Posters 151 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Dan RathbunD Offline
      Dan Rathbun
      last edited by

      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.

      I'm not here much anymore.

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Buy SketchPlus
      Buy SUbD
      Buy WrapR
      Buy eBook
      Buy Modelur
      Buy Vertex Tools
      Buy SketchCuisine
      Buy FormFonts

      Advertisement