Detect when the hard drive is written to.
Detect when the hard drive is written to.
Detect when the hard drive is written to.
Detect when the hard drive is written to.
Detect when the hard drive is written to.
Detect when the hard drive is written to. Detect when the hard drive is written to. Detect when the hard drive is written to. Detect when the hard drive is written to. Detect when the hard drive is written to. Detect when the hard drive is written to. Detect when the hard drive is written to. Detect when the hard drive is written to.
Detect when the hard drive is written to. Detect when the hard drive is written to.
Detect when the hard drive is written to.
Go Back  Xtreme Visual Basic Talk > > > Detect when the hard drive is written to.


Reply
 
Thread Tools Display Modes
  #1  
Old 07-28-2011, 08:00 AM
Michael___ Michael___ is offline
Centurion
 
Join Date: Sep 2009
Posts: 111
Cool Detect when the hard drive is written to.


I have made this program in which the user selects a number of directories and copies them all to an external drive. is there a way to detect when the user does something that involves writing data to the hard drive. When they do, I want my application to detect this and back up that file on the external drive as well so that the back up is always up to date.

My one concern is, how much would this slow the users computer down? Would it be a lot? Regardless of that though, I still would like to include it as an option for the user.
Reply With Quote
  #2  
Old 07-28-2011, 08:32 AM
Qua's Avatar
QuaDetect when the hard drive is written to. Qua is offline
Impetuous & volatile

* Expert *
 
Join Date: Apr 2005
Posts: 2,177
Default

Most users have slow hard disks in their machines which leads to the hard disk often being the bottle neck in regards to performance issues. So if you start copying around files (especially if you do it often or with very large files) then the user will be able to feel this.

I think a better option would be to run the backup operation at certain fixed points in time or per request by the user.

.NET comes with functionality to monitor folders. The class is called FileSystemWatcher.
__________________
Reading is the foundation for all knowledge - Unknown.
Reply With Quote
  #3  
Old 07-28-2011, 09:24 AM
Michael___ Michael___ is offline
Centurion
 
Join Date: Sep 2009
Posts: 111
Smile

Thanks for that. I will use the file system watch. Also, I plan to have various options open to the user. If they don't like it, then they can disable it. Here's a list of times that I was thinking about running it:
1. Every 10, 20, 30, 60 minutes, ect...
2. When the user logs in
3. When the user shuts down their computer (if I can)
4. When the user clicks the back up button
5. Finally, the one you suggested about at fixed points.

The trick is to look at the last written to date. If it hasn't changed, it would be pointless copying the file to over write it.

Thanks again!
Reply With Quote
Reply

Tags
detect, drive, hard, write, written


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Detect when the hard drive is written to.
Detect when the hard drive is written to.
Detect when the hard drive is written to. Detect when the hard drive is written to.
Detect when the hard drive is written to.
Detect when the hard drive is written to.
Detect when the hard drive is written to. Detect when the hard drive is written to. Detect when the hard drive is written to. Detect when the hard drive is written to. Detect when the hard drive is written to. Detect when the hard drive is written to. Detect when the hard drive is written to.
Detect when the hard drive is written to.
Detect when the hard drive is written to.
 
Detect when the hard drive is written to.
Detect when the hard drive is written to.
 
-->