So, there's apparently no hope for me, the hapless Windows 7 user. But if you're using Windows 2000, XP or 2003 (and only if you're using Windows 2000, XP or 2003), you're in luck!
This MSDN document contains instructions on how to disable auto-play on individual drive letters.
Basically, you start by taking the drive letters you want to disable. For me it was E, F, and G.
ZYXWVUTSRQPONMLKJIHGFEDCBA
00000000000000000000000000
This is a binary number. Change the digits under the drive letters you want to disable auto play on to 1. Like this:
ZYXWVUTSRQPONMLKJIHGFEDCBA
00000000000000000001110000
Ignore all the leading zeroes. Now I have
1110000
Convert it to hex with the Windows calculator or whatever.
70
Now open the start menu, type regedit
and go here:
HKEY_CURRENT_USER
Software
Microsoft
Windows
CurrentVersion
Policies
Explorer
Go to the menu and select Edit > New > DWORD (32-bit) value.
Name it NoDriveAutoRun
. Now, type in the number you just figured out. Close regedit. Magic! Rebooting may be required for the change to take effect.
Use this to disable autorun for a specific drive : https://technet.microsoft.com/en-us/library/Cc938275.aspx
– iman – 2015-08-07T01:38:45.400@iman That's Windows 2000 documentation;
NoDriveAutoRun
doesn't work in versions of Windows released in the last decade. – JamesGecko – 2015-08-08T03:57:14.1402Granularity was removed from Vista and Windows 7, I have never found a way to do it, so I turn off auto play. – Moab – 2010-09-13T23:27:13.967
I don't think it's possible. – soandos – 2011-08-05T02:17:39.847
@Moab How do you do this? – coelhudo – 2012-07-04T22:49:18.960
@coelhudo Go to Microsoft's Autorun support page and either follow the instructions, or click on one of the "Fix it for me" buttons halfway down the page.
– JamesGecko – 2012-07-05T20:21:10.613Nice, I had a similar problem and that was part of the problem, thanks!. – coelhudo – 2012-07-05T20:44:15.493
@JamesGecko that article is for XP and Vista – Moab – 2012-07-21T00:44:05.827
@coelhudo go to Control Panel>Autoplay, turn it off at the top tick box – Moab – 2012-07-21T00:45:01.537