VB.NET中的共享文件夹监视器 [英] Shared Folder Monitor in VB.NET

查看:166
本文介绍了VB.NET中的共享文件夹监视器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要您的帮助.
能给我一个具有属性的函数或类吗?
例如:


我共享了一个文件夹(C:\ shared)

I need your help.
Can you give me a function or class which have properties ?
For example:


I shared a folder (C:\shared)

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




谢谢.

我是RUPP的一名主要IT专业的学生.

[edit]添加了代码块,紧急度已删除-OriginalGriff [/edit]




Thanks.

I am a student at RUPP in major IT.

[edit]Code block added, urgency deleted - OriginalGriff[/edit]

推荐答案

可以在FileSystemWatcher [
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.


这篇关于VB.NET中的共享文件夹监视器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆