I believe this may be a problem in the registry. In particular, I think this lies under HKCR
.
I would like you to check some registry data manually first.
WARNING: Editing the registry can be dangerous. You are warned!
First, fire up Registry Editor (run regedit.exe
from the start menu search box).
Then navigate to HKEY_CLASSES_ROOT\.exe
. On the right you should see (Default)
of type REG_SZ
having the data exefile
. Comment below and stop here if this is not on your machine.
Then also navigate to HKEY_CLASSES_ROOT\.lnk
. On the right you should see (Default)
of type REG_SZ
having the data lnkfile
. Comment below and stop here if this is not on your machine.
If you passed the above check, then you can follow the following steps to attempt to fix the problem.
WARNING: Editing the registry can be dangerous. You are warned twice!
The following fixes .exe
files:
Navigate to HKEY_CLASSES_ROOT\exefile\shellex\DropHandler
. On the
right you should see (Default)
of type REG_SZ
, but may not be
having the data {86C86720-42A0-1069-A2E8-08002B30309D}
.
Now, select "File" -> "Export" on the menu to backup the data.
When you've done exporting the data, you should try editing the data
of the item (Default)
. Double-click on (Default)
, then paste the
following value {86C86720-42A0-1069-A2E8-08002B30309D}
and click
"OK" (or press Enter).
The following fixes .lnk
(Windows shortcuts) files:
Navigate to HKEY_CLASSES_ROOT\lnkfile\shellex\DropHandler
. On the
right you should see (Default)
of type REG_SZ
, but may not be
having the data {00021401-0000-0000-C000-000000000046}
.
Now, select "File" -> "Export" on the menu to backup the data.
When you've done exporting the data, you should try editing the data
of the item (Default)
. Double-click on (Default)
, then paste the
following value {00021401-0000-0000-C000-000000000046}
and click
"OK" (or press Enter).
After that, close Registry Editor and restart explorer.exe
. The easy way is to log off then log in.
By default, you can also drop to .bat
, .cmd
and some more file types. If you find that you can't also, find a working Windows 7 machine and copy the corresponding registry values.
Windows doesn't provide a built-in way to change the default action of drag and drop, but I found a tool called Drag'n'Drop Editor which will let you change the default action to "move".
This doesn't disable copying (you can still hold Ctrl to make a copy), but it should help prevent accidental copies.
Best Answer
This is possible. Let's ask ourselves two questions:
What hapens when we drag and drop a file?
How can we modify the drag-drop behavior?
So, by some simple scripting, we can hold the SHIFT key when you drop the file based on the window!
After some research to figure out the name of the window (hook Window Title functions with API Monitor) we can now create an AutoHotkey script that will hold the SHIFT key until after you drop the file.
Haven't really tried the above code, but I think I believe it should work.
Possible improvements:
I hope the above script works or that I gave you a good start. :-)