473,830 Members | 2,059 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 4235
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
1872
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
1571
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
2240
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
2932
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
4146
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
3220
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
2080
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
3590
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
9780
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
9641
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
10769
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10520
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
10196
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
9310
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...
1
7739
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6940
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
5615
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...

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.