Problem with SU
-
@cotty said:
I had to change the content of the batch-file to (Windows 7-64):
[code]"c:\Windows\System32\reg.exe" query "HKEY_CURRENT_USER\Software\Google\SketchUp8" /f "ToolbarsUser" >> reg_keys.txtIt was made on Windows 7 64bit...
It's using relative path - I see you used a full path. Seems like there's something odd about your PATH environment variables...@cotty said:
(I found 4539 entries, who has more ? )
I've had double that... After a session of longer debugging a toolbar problem.
-
Mine last cleared out at over ~1800 toolbar entries - and it had been crawling !
After a lot of debugging of scripts/toolbars/extensions etc it does grow alarmingly...You must have been waiting forever for it to startup !
I have a cmd that removes all toolbar guff and extensions too.
It reduces startup time by a factor of 4 or 5 after it's run and I reinstall the extensions/toolbars I need !! -
Extensions bogg down as well?
-
I think if you keep adding/subtracting/activating/deactivating extensions during tests legacy entries can build up.
Seems to slow me down when developing tools using them - if it crashes on a faulty load I think a new one gets added... The extension's name is determined by the loader .rb and if you change the text in that, then the older one can be left behind ?
Also if you physically move an extension or rename it .rb! then its extension data is left in the registry clogging things up...
Just seems easier to clean them out now an again, like the toolbars. -
@thomthom said:
It was made on Windows 7 64bit...
It's using relative path - I see you used a full path. Seems like there's something odd about your PATH environment variables...The neccessary change was the "/f" instead of the "| find" which causes an error for me.
@thomthom said:
I've had double that... After a session of longer debugging a toolbar problem.
I made it without a single line of debugging
-
I updated the command file a bit:
(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=
-
Haven't yet posted anything until now...thanks very much thomthom, for this excellent solution! Worked perfectly for me, on a problem that has been plaguing me for just over a month.
-
Thanks Thom - batch file worked like a dream - startup time greatly reduced.
Advertisement