To pin to start menu, create a shortcut of the .bat file, then edit the properties of the shortcut. Then, change the "target" from something like C:\scripts\hideTaskbar.bat
to cmd /c "C:\scripts\hideTaskbar.bat"
. That shortcut can now be pinned to the start menu for easy access 👍
Created
October 24, 2023 13:51
-
-
Save coulterpeterson/d2fb1b37f0a03a486ebe56f6db503b94 to your computer and use it in GitHub Desktop.
Force Windows Taskbar to Re-Hide Itself in Windows 10+
This file contains hidden or 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
REM Hide Taskbar and Kill Explorer to Make It Restart (Credit to https://stackoverflow.com/a/47202007) | |
powershell -command "&{$p='HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3';$v=(Get-ItemProperty -Path $p).Settings;$v[8]=3;&Set-ItemProperty -Path $p -Name Settings -Value $v;&Stop-Process -f -ProcessName explorer}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment