i experienced this trick to disable autoplay on a USB drive.
Note that this trick works only for one USB drive, the one you intend to modify; it’s not a techique to disable autoplay in general (for that use, use Group Policy option).
Make an “autorun.inf” FOLDER on the drive, set it to hidden and system and create in it an udeletable folder.
From command prompt into root folder of USB drive (cmd):
mkdir autorun.inf (this creates an autorun folder)
attrib +s +h autorun.inf (makes it hidden and system)
cd autorun.inf (opens the folder)
mkdir .\con\ (this creates an undeletable folder inside the autorun folder; write exact characters)
No more autorun.inf viruses possible.
thanks to Jon, Island Boy and David from
http://www.makeuseof.com/tag/how-to-prevent-a-usb-drive-from-running-anything-automatically-in-windows/