Outbreaker Posted May 12, 2008 Share Posted May 12, 2008 (edited) Have fun @ECHO OFFTITLE GUICOLOR 02ECHO.ECHO Enable Auto-hide taskbar and Quick Launch.ECHO ===============================================================================ECHO.ECHO.ECHO Adding Registry Key to enable Auto-hide Taskbar.REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2" /v "Settings" /t REG_BINARY /d "28000000ffffffff03000000030000006b0000002200000000000000de0200000004000000030000" /FECHO.ECHO -------------------------------------------------------------------------------ECHO.ECHO Adding Registry Key to enable Quick Launch.REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop" /v "TaskbarWinXP" /t REG_BINARY /d "0c000000080000000200000000000000b0e22bd86457d011a96e00c04fd705a222001c000a0100001a000000010000000000000000000000000000004c0000000114020000000000c0000000000000468300000010000000a0b0485e898dbd0100d89ee42a8dbd010045fe5e898dbd01000000000000000001000000000000000000000000000000130114001f0fe04fd020ea3a6910a2d808002b30309d190023443a5c0000000000000000000000000000000000cd971500310000000000af245cb9108057696e6e7400002000310000000000af24a3b9100050726f66696c65730050524f46494c4553001900310000000000c1240892100069653530302e30303000002800310000000000c124089210004170706c69636174696f6e2044617461004150504c49437e31002100310000000000c5229d9110004d6963726f736f6674004d4943524f537e31002900310000000000d32232a61000496e7465726e6574204578706c6f72657200494e5445524e7e31002400310000000000db2276ba1000517569636b204c61756e636800515549434b4c7e310000008d0000001c000000010000001c000000360000000df0adba8c0000001a00000003000000e7182d231000000049453530305f58314300433a5c57494e4e545c50726f66696c65735c49453530302e3030305c4170706c69636174696f6e20446174615c4d6963726f736f66745c496e7465726e6574204578706c6f7265725c517569636b204c61756e6368000010000000050000a01a000000a3000000000000000800000002000000cc00000001000000030000004a0000000100000040003200e6010000c424159f20004c61756e636820496e7465726e6574204578706c6f7265722042726f777365722e6c6e6b004c41554e43487e322e4c4e4b00000040000000020000003600320048020000c424159f20004c61756e6368204f75746c6f6f6b20457870726573732e6c6e6b004c41554e43487e312e4c4e4b00000036000000000000002c00320051000000ec224639200053686f77204465736b746f702e7363660053484f5744457e312e53434600000052000000e00000000000000016000000000000000000000016000000000000000100000001000000aa4f2868486ad0118c7800c04fd918b437020000e000000000000000160000000000000000000000160000000000000001000000" /fECHO.ECHO -------------------------------------------------------------------------------ECHO.ECHO Kill explorer.exe processes (explorer.exe restarts automatically again).TSKILL "explorer" /A /VEXIT Edited May 12, 2008 by Outbreaker Link to comment Share on other sites More sharing options...
m4z3 Posted May 26, 2008 Share Posted May 26, 2008 It doesnt work here... (XP Pro)I think the Taskbar key is not machine independent.And u will loose all taskbar icons beside the clock if u kill explorer.I suggest to run systray.exe at the end.A delay is needed to wait until explorer has finished loading otherwise running systray will be useless.: Kill explorerTASKKILL /im EXPLORER.EXE /f >NUL 2>&1: Restart explorerSTART EXPLORER.EXE: Delay 1,111 secPING 1.1.1.1 -n 1 -w 1111 > NUL 2>&1: Restore taskbar iconsSTART SYSTRAY.EXE Link to comment Share on other sites More sharing options...
Outbreaker Posted May 29, 2008 Author Share Posted May 29, 2008 (edited) If i use this command:TASKKILL /im EXPLORER.EXE /fThen the explorer.exe doesn't restart automatically and i must use this command to start it agan:START EXPLORER.EXEAnd if i enter the command "START SYSTRAY.EXE" i see no differences.Test on too new installed PC's. Edited May 29, 2008 by Outbreaker Link to comment Share on other sites More sharing options...
ppp Posted February 8, 2013 Share Posted February 8, 2013 I wanted a shortcut to toggle the autohide option of the taskbar and I've come up with the following batch file. My registry value is not the same with the one given above. I noticed that by only changing that option from the taskbar properties just a digit of the value was altered from 2 to 3 and back. So I just toggle this digit. However this digit may also represent more options in its bits and be different to other PCs. But one can easily adapt it the same way. The problem is that I have to restart explorer so the new registry value takes effect and I loose all opened explorer windows. Can anyone give a script of how I can just refresh the taskbar. Alternatively we could save and restore all opened paths as in this thread, but I want it in a batch script.@ECHO OFF::Get the Registry Key, in delims there is a TAB and a space before "FOR /F "tokens=3 delims= " %%A IN ('REG QUERY "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2" /v Settings') DO SET RES=%%A::Backup Initial ValueIF NOT EXIST "autohide-toggle.bak" ( ECHO %RES%>"%userprofile%\autohide-toggle.bak")::Find Important DigitSET DIGIT=%RES:~17,1%::Toggle Important DigitIF %DIGIT% EQU 2 ( SET TOGL=3) ELSE ( SET TOGL=2)::Set New ValueSET NEW=%RES:~0,17%%TOGL%%RES:~18%REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2" /v "Settings" /t REG_BINARY /d "%NEW%" /F::Restart Explorer.exe processTSKILL "explorer" /A /VEXIT Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now