开发者

how to find a Explorer Window with Name Path X is exist?

how to find a Explorer Window with Name Path 'X' is exist ?

for example开发者_StackOverflow there is a window that show "C:\" .


That would be very difficult to do. You can try using the Win32 API to enumerate all windows and their child windows to see if you can find that text in, say, the location bar (see this link), but maybe there's an easier approach to the problem you're addressing. If, for example, you want to open an Explorer window to "C:\", you can pass "C:\" as the command to StartProcess. At least from my XP box, that will not open a duplicate Explorer window if one's already opened to "C:\".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜