how to find a Explorer Window with Name Path ‘X’ is exist ?
for example there is a window that show “C:\” .
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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:\”.