Auto_hide_taskbar
1
2
3
4
5
6
7
8
9
10
11
12
| @echo off
set logPath="z:\taskbar.log"
set /p log=< %logPath%
set cmd1="&{$p='HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3';$v=(Get-ItemProperty -Path $p).Settings;$v[8]="
set cmd2=";&Set-ItemProperty -Path $p -Name Settings -Value $v;&Stop-Process -f -ProcessName explorer}"
if %log% == 1 (
powershell -command %cmd1%3%cmd2%
echo 0 > %logPath%
) else (
powershell -command %cmd1%2%cmd2%
echo 1 > %logPath%
)
|