Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 23rd, 2004, 01:34 PM
Authorized User
 
Join Date: Feb 2004
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default FileSystemWatcher watching MyComputer

Hello,

i'm trying to configure a FileSystemWatcher component to watch my whole system(a PC) for file changes. My problem is that the biggest thing i can configure it to watch is a drive - C:\ for example. I want to make it track changes on all system drives at the same time. I thought that i can use a path like this:
this.fileSystemWatcher1.Path =
Environment.GetFolderPath(Environment.SpecialFolde r.MyComputer);
or ... .Desktop);
but it doesn't work, because it seems that .MyComputer special folder doesn't give a path that the FileSystemWatcher can use and .Desktop gives a path to ...\Username\Desktop, where only the files on the desktop are found and not MyComputer as a subdirectory.

Can you please tell me how to 'watch' all the drives on My Computer?

Thanks in advance.
Alex







Similar Threads
Thread Thread Starter Forum Replies Last Post
FileSystemWatcher brawny4 Visual Basic 2005 Basics 3 December 28th, 2006 12:47 PM
FileSystemWatcher? [C#] [email protected] General .NET 2 May 13th, 2005 03:50 AM
HELP - FileSystemWatcher Problems [email protected] Pro VB.NET 2002/2003 0 January 10th, 2005 09:37 PM
FileSystemWatcher Problem [email protected] VB.NET 0 December 18th, 2004 11:29 AM
FileSystemWatcher Class bwood415 General .NET 5 December 6th, 2004 04:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.