473,785 Members | 2,882 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 programmaticall y 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 1506
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********@gma il.com> wrote in message
news:11******** *************@j 33g2000cwa.goog legroups.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 programmaticall y 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
2644
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 the original browser window? Maybe it has something to do with cache, because most off the people using the website don't have this problem.
3
6008
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 verify the existance of the data, so as to prevent the multiple insertion. Is there any other way to prevent it otherthan introducing another field for this purpose and verifying its existance? Regards,
0
2468
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 drive root). The menu item text is "Open .Net Command Window Here". When you click it, it opens a command window positioned at that directory and runs the vsvars32.bat file to set the .Net Framework environment variable settings. This makes it...
8
2466
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 was the entire function failing, but I tested with alerts and found that it was only the 'window.open' that fails to execute. The function is being called by a link, and I suspected some problem with the body alink/vlink but after cutting that out...
2
2276
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 Server explorer to update the table, it gives me error, Couldn't VB just act as a intermidary to make the call and SQL server is supposed to do all the jobs?? To explain it in a simple way, I have 3 TABLES, TABLE1 with column C1(key), C2(char) & C3...
2
3746
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 of the thumb drive to the local machine with a custom process. I realize there might be some security issues with this...but it would sure be useful if I could do it. -Thx
4
6322
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 Computer window is open showing the M:\ drive then the batch file bombs out (can't disconnect network drive while in use) and the VBA gets stuck in an endless loop waiting for the batch file to announce that it has finished. How can I check if any...
7
2407
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 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html...
0
1693
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 problems I am facing: 1.) When I release the mouse button on a drag event, the dragdrop interrupt only fires when the release is in the ListView box itself (not useful.) I am guessing that I would do an event on the mouse being releaded? 2.) ...
0
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8973
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3647
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.