473,386 Members | 1,791 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.

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 3082
I tried that and created the following exception when a disk is not in:

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

Additional information: The directory name A:\ is invalid.
Even After "catch"ing the exception(s) FileSystemWatcher 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*******************@IHATESPAMmchsi.com.NOSPAM > wrote in
message news:e7**************@TK2MSFTNGP11.phx.gbl...
Check out FileSystemWatcher. 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.com> wrote in message
news:e0**************@TK2MSFTNGP09.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
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...
1
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...
3
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
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...
8
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,...
7
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...
1
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...
11
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
by: Andy B | last post by:
What would i use to look for changes in a file every minute?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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.