Click to See Complete Forum and Search --> : Customizing Windows behavior when inserting USB drive


bpalmer
August 21st, 2007, 04:37 PM
I'm working on an application which stores data on removable USB flash drives. It works great, except that when the user inserts the flash memory, Windows pops up a window showing the contents of the flash drive. The user has to manually close that window to continue with the application. I've seen this behavior on both XP and Vista.

Is there a way to prevent the flash drive window from opening? I'd welcome either a solution that I can incorporate in my program or instructions for my users to customize their Windows environment.

Thanks!

PeejAvery
August 21st, 2007, 07:14 PM
Download TweakUI from Microsoft's PowerToys (http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx). Then disable autoplay for the drives.

HanneSThEGreaT
August 22nd, 2007, 12:50 PM
Just one thing to mention about Vista's AutoPlay options.

The problem with it, is that there are settings for Audio CDs and DVDs, BUT nothing specifically for USB flash drives.

When inserting the USB stick, Windows should determine the drive type based on the content it finds on the USB stick.

So, Do this:
1) Open your Control Panel, and then click on Play CDs or other media automatically, or go to Autoplay
2) In the Software and Games drop down, select Take No Action
3) In the Pictures drop down, select Take No Action
4) In the Video Files drop down, select Take No Action
5) In the Audio Files drop down, select Take No Action
6) In the Mixes Content drop down, select Take No Action

Leave the Options for the Blank CD and Blank DVD options alone.

I hope it also helps a bit :)