积极答复者
c# 怎么写监视C盘windows文件夹的打开动作

问题
答案
-
你好,
看下这篇文章: Create Namespace Extensions for Windows Explorer with the .NET Framework
http://msdn.microsoft.com/en-us/magazine/cc188741.aspx
[ Editor's Update - 6/23/2006: Because shell extensions are loaded into arbitrary processes and because managed code built against one version of the runtime may not run in a process running an earlier version of the runtime, Microsoft recommends against writing managed shell extensions and does not consider them a supported scenario.]
你需要学习Windows Shell编程。参考下这篇文章:
http://www.codeproject.com/PressReleases/1015/Bring-Windows-Shell-Extensions-Active-Directory-IE-Extensions-with-EZShellExtensionsMFC-to-MFC.aspx
注意:这是有一个第三方产品,竟供你参考一下,提供给你只是为了你的方便,我们不对这个产品的使用承担任何责任。
Best regards,
Riquel
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- 已标记为答案 Riquel_DongModerator 2009年9月11日 1:33
- 取消答案标记 BigBadBoy 2009年9月12日 17:13
- 已标记为答案 Riquel_DongModerator 2009年9月22日 1:51
-
[编者更新- 2006年6月23日:由于外壳扩展被加载到任意的程序,因为托管的代码建立在一个特定的运行时版本中,可能无法运行在一个进程中(运行一个较早版本运行时),微软建议不要写托管的外壳扩展并且不支持的这种情况。]
Best regards,
Riquel
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- 已标记为答案 BigBadBoy 2009年9月29日 13:38
全部回复
-
http://msdn.microsoft.com/zh-cn/library/system.io.filesystemwatcher.aspx 参考
只有监视文件的操作,没找到监视文件夹的打开的动作,请高手帮忙解决........
你好FileSystemWatcher类可以监听目录以及该目录下的文件的更改删除等
设置属性Path="目录路径";即可
将属性IncludeSubdirectories 设置为true则可以监听其子目录
Wenn ich dich hab’,gibt es nichts, was unerträglich ist.坚持不懈!http://hi.baidu.com/1987raymond- 已建议为答案 sonven 2009年9月8日 4:32
-
你好,
这不是.NET Framework的问题。这是Windows Shell编程,你需要学习Windows Shell的借口看如何把你的要求加入到Shell的处理过程中。
因为一个进程只能加载一个版本的CLR,我们是不建议写托管的Windows Shell Extension来实现这个需求的,你要使用Native C++来实现这个要求,到codeproject上搜索以下。
Best regards,
Riquel
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us. -
你好,
看下这篇文章: Create Namespace Extensions for Windows Explorer with the .NET Framework
http://msdn.microsoft.com/en-us/magazine/cc188741.aspx
[ Editor's Update - 6/23/2006: Because shell extensions are loaded into arbitrary processes and because managed code built against one version of the runtime may not run in a process running an earlier version of the runtime, Microsoft recommends against writing managed shell extensions and does not consider them a supported scenario.]
你需要学习Windows Shell编程。参考下这篇文章:
http://www.codeproject.com/PressReleases/1015/Bring-Windows-Shell-Extensions-Active-Directory-IE-Extensions-with-EZShellExtensionsMFC-to-MFC.aspx
注意:这是有一个第三方产品,竟供你参考一下,提供给你只是为了你的方便,我们不对这个产品的使用承担任何责任。
Best regards,
Riquel
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- 已标记为答案 Riquel_DongModerator 2009年9月11日 1:33
- 取消答案标记 BigBadBoy 2009年9月12日 17:13
- 已标记为答案 Riquel_DongModerator 2009年9月22日 1:51
-
[编者更新- 2006年6月23日:由于外壳扩展被加载到任意的程序,因为托管的代码建立在一个特定的运行时版本中,可能无法运行在一个进程中(运行一个较早版本运行时),微软建议不要写托管的外壳扩展并且不支持的这种情况。]
Best regards,
Riquel
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- 已标记为答案 BigBadBoy 2009年9月29日 13:38