boxstarter
boxstarter copied to clipboard
Feature: Allow setting single- or double-clicking items in Explorer
Although, it seems like we have to update a complicated bit mask, ShellState?
Possible starting point
$path = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer'
$shell_state = (Get-ItemProperty -Path $path).ShellState
$shell_state[4] = $shell_state[4] -bxor 32
Set-ItemProperty -Path $path -Name ShellState -Value $shell_state
Although it would be nice to set the value instead of toggling. Am I following this bitwise math correctly?
- double-click 52
- single-click 20
as you've pointed out modifying SHELLSTATE should work.