获取路径中的所有打开资源管理器的Windows列表框 [英] Get Path in a ListBox of all Open Explorer Windows

查看:458
本文介绍了获取路径中的所有打开资源管理器的Windows列表框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想列出所有打开Windows资源管理器窗口,在一个的ListBox 他们的活动路径。该应用程序应该刷新的ListBox 如果浏览器窗口导航到不同的路径。

I want to list all open Windows Explorer windows with their active path in a ListBox. The app should refresh the ListBox if the explorer window is navigated to a different path.

有关如两块Explorer窗口是打开的。一个是导航到 C:\Windows 和其他导航到 D:\Stuff 。当运行应用程序,它增加了 C:\Windows D:\Stuff 的ListBox 。然后,用户导航到不同的文件夹中打开资源管理器窗口,比如一C:\Windows\system32 。然后应用程序应该刷新的ListBox 和列表 C:\Windows\system32 D:\Stuff 而不是

For e.g. two explorer windows are open. One is navigated to C:\Windows and the other is navigated to D:\Stuff. When the app it run, it adds C:\Windows and D:\Stuff to the ListBox. Then, the user navigates to a different folder in one of the open explorer windows like C:\Windows\system32. The app should then refresh the ListBox and list C:\Windows\system32 and D:\Stuff instead.

我没有对如何做到这一点的任何想法。任何指针将不胜感激。

I don't have any ideas on how to do this. Any pointers would be appreciated.

推荐答案

在这里你可以找到一个示例如何访问 WindowsExplorer路径的InternetExplorer 的http:/ /omegacoder.com/?p=63

Here you can find an example how to access the paths in WindowsExplorer and InternetExplorer : http://omegacoder.com/?p=63

,以便能够接收关于事实用户导航到不同的路径的通知什么,就没有的方式,我所知道的,真的。

What about to be able to receive a notification about the fact that user navigated to different path, there is no way that I'm aware of, honestly.

让我脑海的第一个解决方案,就是使用定时并检查每一个勾号。

So the first solution that comes to my mind, is use a Timer and check on every tick.

这篇关于获取路径中的所有打开资源管理器的Windows列表框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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