473,386 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Preventing Explorer Window from Displaying when Pen Drive Inserted

I am in the process of writing an application that detects the
insertion of a pen drive, and if a specific folder structure exists, it
shows a form containing data.

The problem is that when I insert the pen drive on some machines
running Windows XP, a windows explorer window appears containing the
contents of the pen drive. This window covers my application's window,
even if my application window opens a few seconds later.

How do I programmatically prevent this Explorer window from appearing?
Is there some Registry setting? Is it a specific setting for this
particular pen drive? I've tried playing around with the AutoPlay tab
in the properties dialog for that particular drive, and it doesn't seem
to help.

Thanks in advance for any help anyone can provide!
-Chad

Mar 7 '06 #1
2 1491
Hi,

Some auto play info on windows xp

http://msdn.microsoft.com/library/de...k_cookbook.asp

http://windowsxp.mvps.org/addautoplay.htm

Ken
-----------------
"Chad" <ch********@gmail.com> wrote in message
news:11*********************@j33g2000cwa.googlegro ups.com...
I am in the process of writing an application that detects the
insertion of a pen drive, and if a specific folder structure exists, it
shows a form containing data.

The problem is that when I insert the pen drive on some machines
running Windows XP, a windows explorer window appears containing the
contents of the pen drive. This window covers my application's window,
even if my application window opens a few seconds later.

How do I programmatically prevent this Explorer window from appearing?
Is there some Registry setting? Is it a specific setting for this
particular pen drive? I've tried playing around with the AutoPlay tab
in the properties dialog for that particular drive, and it doesn't seem
to help.

Thanks in advance for any help anyone can provide!
-Chad

Mar 8 '06 #2
After looking through the autoplay documentation you provided, it looks
like the problem I'm having isn't with autoplay.

I have manually set the autoplay info for my pen drive to "Take No
Action", for every file type. But when I plug in the pen drive, it
still opens the Windows Explorer folder list. There has to be
something else that is causing this to happen, since my autoplay
settings are set to take no action.
Has anybody had this problem before?

Thanks,
Chad

Mar 9 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: geradeaus | last post by:
Hi, I use a php class to create pdf files (http://www.ros.co.nz/pdf/) ... but when I download the created pdf, the browser window closes, and Acrobat opens. How do I prevent the closing of...
3
by: Raju V.K | last post by:
I am developing a PHP-mysql database. It is noted that when the browser window is refreshed the data is inserted again in the database. unfortunately there is no unique keys that I can use to...
0
by: Tom Dacon | last post by:
"Open .Net Command Window Here" context menu for Windows Explorer: The reg file described below adds a new menu item to Windows Explorer's context menu when you right-click over a folder (or the...
8
by: alanstew | last post by:
With the body tag calling out 'window onload', a function with a 'window.open' fails at the 'window.open' line. If I cut out the body tag, the function executes as normal. At first I thought it...
2
by: AH | last post by:
Dear all, I am facing this 'bug' that really drive me nut. I created a trigger for Update script and tested in Enterprise manager to ensure it function correctly. However, when I used both VB or...
2
by: kilik3000 | last post by:
Is there a way to catch an event/trigger that *might* be fired when a usb thumb drive is inserted into a Vista PC? The reason I ask is that I'd like to catch that event and back up the content...
4
by: ginge6000 | last post by:
Hi, I have an app which creates batch files to transfer stuff around a network. As part of the batch files they disconnect the networked M:\ drive. Unfortunately if a WIndows Explorer/My...
7
by: hsegoy1979 | last post by:
Dear All Iam using file upload control and i want to display image in another pop up page .But image is not displaying in image control iam sending image path thru querystring . here is my code ...
0
by: chris52672 | last post by:
I have a list view box that shows the files in a directory. I want to drag from the list box to an e-mail window or an explorer window (file folder) and have the file copied to there. Here are the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.