Click here to Skip to main content
15,867,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need your help.
Can you give me a function or class which have properties ?
For example:


I shared a folder (C:\shared)

VB
Dim clsObj as new clsSharedMonitor("C:\shared")
'so that I can get its properties like:
clsObj.FullPath() 'Full Path of folder that client are accessing
clsObj.ClientIP() 'IP of computer which access to server
clsObj.UserName() 'UserName of client use to access this sharedfolder
clsObj.DateAccessed() 'date of client access to shared folder



Thanks.

I am a student at RUPP in major IT.

[edit]Code block added, urgency deleted - OriginalGriff[/edit]
Posted
Updated 25-Jun-11 22:31pm
v2
Comments
OriginalGriff 26-Jun-11 4:31am    
Urgency deleted: It may be urgent to you, but it isn't to us. All that your stressing the urgency does is to make us think you have left it too late, and want us to do it for you. This annoys some people, and can slow a response.

1 solution

Monitoring folder changes can be done with the help of the FileSystemWatcher class[^]. There are good sample implementations of this on the internet - do a search and you shall find some of them.
 
Share this answer
 
Comments
smlim01 26-Jun-11 6:33am    
Please can you give a hot code?

Big Thanks
Abhinav S 26-Jun-11 7:21am    
Try here.
smlim01 26-Jun-11 10:58am    
Yes, I saw it.
but I cannot the IP address which delete/modified/rename file or folder.
Sergey Alexandrovich Kryukov 26-Jun-11 21:23pm    
Correct, a 5.
--SA
smlim01 26-Jun-11 22:54pm    
Can you give some idea about how to get IP of client which delete/modify.. file/folder???

Big Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900