I want to see the windows, while I drag them. This I can edit in c:\windows\system32\systempropertiesperformance.exe (effects) "Show window content while dragging".
What die edit do is, it sets the key HKCU\Control Panel\Desktop\DragFullWindows to value '1' and restarts the explorer.
Now you want to ask: "Why you generally want to write a script for that?"
The answer is, that some admin backup tool, which I don't know, how it works, set this value automatically back to '0' over night.
The batch file looks like this:
Code: Select all
@echo off
echo Turn on DragFullWindows
reg add "HKCU\Control Panel\Desktop" /v DragFullWindows /t REG_SZ /d 1 /f
echo restart Explorer
taskkill /f /im explorer.exe
start explorer.exe
echo Explorer back again
Thx