473,402 Members | 2,061 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,402 software developers and data experts.

get username on file changed?

Hello, I want to create a program that will monitor the usage of a

particular file and record the date, time, and username of the person

who modified the file.

The FileSystemWatcher Class seems to be very useful for this purpose,

except that it does not provide username information.

Is there anyway I can extend this class to provide this username

information, or get the username by any other means? Such information

is available in "Computer Management" under "Open Files", so there must

be a way to get that information in Visual Basic.

Thanks for any help you might offer.

federico
Nov 21 '05 #1
2 2112
Use what you have in conjunction with who is logged into the computer ?

Dim username As String = System.Environment.UserName()

Sets the username to be the current user logged in.


--
JRB Technology
http://www.jrbtech.com
"news.microsoft.com" <fe******@here.now> wrote in message
news:uS******************@TK2MSFTNGP14.phx.gbl...
Hello, I want to create a program that will monitor the usage of a

particular file and record the date, time, and username of the person

who modified the file.

The FileSystemWatcher Class seems to be very useful for this purpose,

except that it does not provide username information.

Is there anyway I can extend this class to provide this username

information, or get the username by any other means? Such information

is available in "Computer Management" under "Open Files", so there must

be a way to get that information in Visual Basic.

Thanks for any help you might offer.

federico

Nov 21 '05 #2
The file resides in a share, and the program would run on the server, so
there would be no user logged on the server where the program would be
running.

federico

"JRBTech" <jr********@gmail.com> wrote in message
news:Zq********************@adelphia.com...
Use what you have in conjunction with who is logged into the computer ?

Dim username As String = System.Environment.UserName()

Sets the username to be the current user logged in.


--
JRB Technology
http://www.jrbtech.com
"news.microsoft.com" <fe******@here.now> wrote in message
news:uS******************@TK2MSFTNGP14.phx.gbl...
Hello, I want to create a program that will monitor the usage of a

particular file and record the date, time, and username of the person

who modified the file.

The FileSystemWatcher Class seems to be very useful for this purpose,

except that it does not provide username information.

Is there anyway I can extend this class to provide this username

information, or get the username by any other means? Such information

is available in "Computer Management" under "Open Files", so there must

be a way to get that information in Visual Basic.

Thanks for any help you might offer.

federico


Nov 21 '05 #3

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

Similar topics

5
by: j-marvin | last post by:
hi- i am going through the process of password protecting a directory using ..htaccess and .htpasswd i am experiencing difficulty. so my question is without making life anymore difficult is...
1
by: Victor Hadianto | last post by:
Hello, Is it possible for me to get the last user who changed a particular file? Or adding/removing/renaming file from the file system? I know that using FileSystemWatcher and I can monitor for...
2
by: Mark | last post by:
In this article http://support.microsoft.com/?id=329290 I will have to perform this in my installation. The question is since the aspnet_setreg.exe does not automatically grant the asp.net service...
8
by: Raj Thakkar | last post by:
Hi, I am currenty working on a site for intranet. I have a user control in the header of every page that will be displayed only if people with certain username are surfing the site. These lists...
16
by: Jm | last post by:
Hi All Is it possible to determine who is logged onto a machine from inside a service using code in vb.net ? I have found some code that seems to work under vb6, but doesnt under .NET ? Any help...
8
by: Philip Wagenaar | last post by:
I need to send printjobs to a printqueue under diffrent usernames. The printsoftware on the queue is not very 'secure' so I can create a user on 1 system and send a printjob under it's name to the...
18
by: Gleep | last post by:
I've searched google intensely on this topic and it seems noone really knows how to approch this. The goal I don't want clients to give out their usernames and passwords to friends, since the site...
0
by: Gery D. Dorazio | last post by:
The SQL Server 2005 security database that is installed for an ASP.NET V2.0 web app has the UserName and LoweredUserName in the aspnet_User table. It appears that the only way the UserName is set...
24
by: runway27 | last post by:
i have used the following code to validate the username it is working fineif( $username == "" || !preg_match("/^+(?:_+)?$/i", $username) ) { $error.="User name cannot be blank or has special...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
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...
0
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...
0
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,...
0
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...

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.