473,937 Members | 24,932 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Monitoring file usage

I am working in a C# program what monitors the activity on a computer. I
have been able to accomplish quite a bit so far, but one item I have not
been able to figure out is if there is a way to monitor when a file is
opened. The FileSystemWatch er class is useful for monitoring file/directory
changes, but all I want is to monitor when a file is opened. Is there any
way to do that in .NET?

I am also monitoring processes in use on the system, and checking for open
windows. I can do that quite easily for using the Process class, but haven't
figured out a way to tell of Explorer has any open windows. I want to
prevent users from browsing the hard disk, or at least detect if it is being
done.

This program is part of something I'm developing to help Professors monitor
what student's are doing during a computer-based exam. We want to prevent
students from accessing crib notes stored on their computer, among other
things. The more I can control/prevent with my program, the better. For
example, I prevent the use of Ad Hoc wireless connections and the use of
instant messenger type programs with a mini-firewall. The toughest part is
finding information about how to control all of these internal aspects of
windows...
Nov 16 '05 #1
2 4247
Sounds like you have to use Win32 API's. Have a look at the utilities at
http://www.sysinternals.com/, some of them are with source, they are written
in C/C++
Chris
"Paul Steele" <pa*********@ac adiau.ca> wrote in message
news:%2******** *******@TK2MSFT NGP11.phx.gbl.. .
I am working in a C# program what monitors the activity on a computer. I
have been able to accomplish quite a bit so far, but one item I have not
been able to figure out is if there is a way to monitor when a file is
opened. The FileSystemWatch er class is useful for monitoring file/directory
changes, but all I want is to monitor when a file is opened. Is there any
way to do that in .NET?

I am also monitoring processes in use on the system, and checking for open
windows. I can do that quite easily for using the Process class, but
haven't figured out a way to tell of Explorer has any open windows. I want
to prevent users from browsing the hard disk, or at least detect if it is
being done.

This program is part of something I'm developing to help Professors
monitor what student's are doing during a computer-based exam. We want to
prevent students from accessing crib notes stored on their computer, among
other things. The more I can control/prevent with my program, the better.
For example, I prevent the use of Ad Hoc wireless connections and the use
of instant messenger type programs with a mini-firewall. The toughest part
is finding information about how to control all of these internal aspects
of windows...

Nov 16 '05 #2
Sounds like you have to use Win32 API's. Have a look at the utilities at
http://www.sysinternals.com/, some of them are with source, they are written
in C/C++
Chris
"Paul Steele" <pa*********@ac adiau.ca> wrote in message
news:%2******** *******@TK2MSFT NGP11.phx.gbl.. .
I am working in a C# program what monitors the activity on a computer. I
have been able to accomplish quite a bit so far, but one item I have not
been able to figure out is if there is a way to monitor when a file is
opened. The FileSystemWatch er class is useful for monitoring file/directory
changes, but all I want is to monitor when a file is opened. Is there any
way to do that in .NET?

I am also monitoring processes in use on the system, and checking for open
windows. I can do that quite easily for using the Process class, but
haven't figured out a way to tell of Explorer has any open windows. I want
to prevent users from browsing the hard disk, or at least detect if it is
being done.

This program is part of something I'm developing to help Professors
monitor what student's are doing during a computer-based exam. We want to
prevent students from accessing crib notes stored on their computer, among
other things. The more I can control/prevent with my program, the better.
For example, I prevent the use of Ad Hoc wireless connections and the use
of instant messenger type programs with a mini-firewall. The toughest part
is finding information about how to control all of these internal aspects
of windows...

Nov 16 '05 #3

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

Similar topics

0
1877
by: Jay Blanchard | last post by:
-----Original Message----- From: Moritz Steiner =20 Sent: Wednesday, July 16, 2003 10:46 AM To: Jay Blanchard Subject: AW: monitoring I want to see: Number of queries =20
2
1576
by: rakesh_nits | last post by:
Hi All, I want to watch all fixed drives on a computer.Is there any reliable way to do that.I am watching for create , delete , change , rename events for all files and folders.I am using filesystemwatcher but its not very reliable at all especially for high trafiic activity.I am using empty string for the filter property.I have changed internalbuffersize to 32 KB.I don't want to miss any event , if any event fires two or three times that...
4
2247
by: johnm | last post by:
Hello, We currently are running a CRM application that uses DB/2 7.2 for the data repository. We will be upgrading to 8.2 later this year....maybe....time and resources permitting. The database is currently being hosted with a managed service provider (MSP) at a remote datacenter. This service provider is supposed to be monitoring the health and performance of the database as well as performing proactive maintenance on a regularly...
1
2936
by: Pawan | last post by:
Hi, Currently I am have an assignment which has to have some functionality which enables internet usage of client computers from a server machine. Basically this is an upgradation that I have to write to an existing software for chain of Internet Cafes. Any pointer or resource where I can find such information on Monitoring Internet usage would be highly appreciated. Thanks in advance n blessings. Pawan
3
4148
by: Ron Vecchi | last post by:
Hi all, Can someone point me in the direction on this one, resources or examples. I am writing a Windows Service to monitor a folder. When I file is modified within the folder or any subfolders it should write the name of the file to a xml file. Then at a specifed time all the files in the xml quene will be backed up on a network share. How would I go about monitoring a folder and all subfolders and detect when
0
391
by: Paul Steele | last post by:
I am working in a C# program what monitors the activity on a computer. I have been able to accomplish quite a bit so far, but one item I have not been able to figure out is if there is a way to monitor when a file is opened. The FileSystemWatcher class is useful for monitoring file/directory changes, but all I want is to monitor when a file is opened. Is there any way to do that in .NET? I am also monitoring processes in use on the...
9
3228
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My questions are below... "David Good" wrote: > We have a network running both Win2k and Win2k3 webservers and our web sites > reside on a UNC network share that happens to be a Network Appliance NAS.
1
2086
by: Rick Gigger | last post by:
I am running a few web based applications with postgres on the backend. We have a few app servers load balanced all connecting to a dedicated postgres server. As usage on the applications increases I want to monitor my resources so that I can anticipate when I will hit bottlenecks on the db server. That way we can do upgrades or optimizations before our performance get's unacceptable. We are monitoring cpu usage, memory usage, and...
4
3593
by: rohit | last post by:
hello, i have designed a desktop search utility in python and a file system monitoring using readdirectorychangesw from win32api but for eg. it has a high cpu utilization (using a 2GHz processor). a solution ntfs change journal proposed here works only for ntfs partitions is there another low (processor) cost alternative that works on fat32 partitions as well. Rohit
0
10125
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
9962
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11089
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...
1
11280
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9850
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
7377
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
6072
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...
1
4899
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
4441
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.