473,668 Members | 2,821 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Looking For Disk Change Event

I ran a search through the last 52,549 msg's in this forum and found nothing
and was unable to find anything in the .net help system or MSDN online.

I know there used to be a way to monitor disk changes, but I have been out
of the programming loop for a little while and have forgotten how we used to
do it (int 13 bios calls I think), besides I would like to stick with .net
if I can.

I am trying to make a little utility application for my father and being
able to monitor disk changes would allow me to make the program much more
fail-safe for him. He is not very computer literate.

I need to be able to pick up floppy disk changes, and would be willing to
use almost any means possible - polling the drive is out of the question for
obvious reasons.

Any Help or Recommendations would be appreciated.

Thanx to all in Advance
Nov 15 '05 #1
1 3093
I tried that and created the following exception when a disk is not in:

An unhandled exception of type 'System.Argumen tException' occurred in
system.dll

Additional information: The directory name A:\ is invalid.
Even After "catch"ing the exception(s) FileSystemWatch er does do pop an
event for the disk insert or eject.
As we all know Line 34 of the Floppy Drive is dedicated to "Disk Change"
events why can I not detect this disk change in windows anymore?

Thanx

"Brian Patterson" <GO************ *******@IHATESP AMmchsi.com.NOS PAM> wrote in
message news:e7******** ******@TK2MSFTN GP11.phx.gbl...
Check out FileSystemWatch er. It monitors the file system and will fire an
event when a file size changes, modified date, etc, etc.

Brian Patterson

"Frank Fulton" <fw************ *@weldonware.co m> wrote in message
news:e0******** ******@TK2MSFTN GP09.phx.gbl...
I ran a search through the last 52,549 msg's in this forum and found nothing
and was unable to find anything in the .net help system or MSDN online.

I know there used to be a way to monitor disk changes, but I have been out of the programming loop for a little while and have forgotten how we used to
do it (int 13 bios calls I think), besides I would like to stick with

.net
if I can.

I am trying to make a little utility application for my father and being
able to monitor disk changes would allow me to make the program much

more fail-safe for him. He is not very computer literate.

I need to be able to pick up floppy disk changes, and would be willing to use almost any means possible - polling the drive is out of the question

for
obvious reasons.

Any Help or Recommendations would be appreciated.

Thanx to all in Advance


Nov 15 '05 #2

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

Similar topics

4
3592
by: Frank Einstein | last post by:
Looking for a tool that can edit an XML file in a browser. The basic requirement is that the XML file is rendered as an HTML form with editable fields (including add/delete, preferably in accordance with with the document's XSD/DTD or other schema definition). I don't mind the actual form of this tool - could be implemented as a JSP/Servlet, ASP component, or browser plug-in for local or remote XML file access. Alternatively, it doesn't...
1
2576
by: Johann Blake | last post by:
I am looking for a good solution on how to implement data access in an application so that there is a clean separation between the data access layer, the business layer and the GUI layer. I am looking for a robust solution for a major application. Almost every developer seems to come up with a completely different solution. While many of them are not bad, I really want a very good one. My database is SQL Server 2000 and I am using Visual...
3
1377
by: Nemenyi Zoltan | last post by:
hello Can somebody give me a tipp, how i can get an event on inserting a usb flash disk device? thanks Nemenyi Zoltan
3
2114
by: Just Me | last post by:
I check to see if the Floppy drive is ready and display it's state. But if the user inserts or removes a floppy disk I need an event or Windproof message to cause the code to display the new state. Is the some way the code can be alerted to the fact that a removable disk drive's state changed?
8
4227
by: Foodbank | last post by:
Hi, Has anyone ever hashed a text file to disk before? I'm trying to convert an in-memory hash to disk hash and I can't find any relevant information to help me. Also, I'd like to use lseek, read, write, and fd if anyone is familiar with them. Any info would be greatly helpful. Thanks, James
7
1752
by: Bruce HS | last post by:
I'd like to call my ancestor Validation Function every time any control on a Win Form generates a Validating or Validated event. I'm using VB. I've extended Textbox, for instance, to have its events do this for me, but my extended textbox doesn't get created by those wonderful form setup wizards. So, 1) Is there a way I can pick up these events without having to code for each control and without using custom extended controls, OR
1
3121
by: =?Utf-8?B?Sm8=?= | last post by:
Hi, Whenever i boot up my computer i get the error message: "There is no disk in the drive. Please insert a disk into drive ." Below is the info i got from the Event Viewer. I've already checked that my 'C' drive is the Boot drive/hard drive. I'm running Windows XP Home Edition. Can someone please help me remove this message? it's getting really annoying!!
11
3055
by: GG | last post by:
Anybody knows of any collection where is not stored in memory but using hard disk instead? Thanks *** Sent via Developersdex http://www.developersdex.com ***
6
1686
by: Andy B | last post by:
What would i use to look for changes in a file every minute?
0
8797
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8656
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7401
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...
0
5681
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
4205
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
4380
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2791
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
2023
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1786
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.