|
-
March 18th, 2006, 05:58 AM
#11
Re: open a folder and select the specified file ?
 Originally Posted by suchuhui80
what if there are two alike title of this sort of window ?
In that case you need also check that the EXE is Explorer and not something else.
Or that the class name of the window is "ExploreWClass" which is the class of explorer (at least in windows XP ).
If you got 2 Explorers open i don’t think its a problem cause if i understand what you need to do you can simply open one of them. 
 Originally Posted by suchuhui80
Besides,
if I successfully get the handle of my specified folder window and I try to
imitate user action to select the file,what if the fold has a sub-folder with the same name ?
Here it might fails (it will select the first of the two it will run into that’s depend on the current sorting of explorer) , that’s why even in my last post I told you that this solution is less good than the first one.
 Originally Posted by suchuhui80
what if the fold has a file with the same name ? Besides,what if ,no what if again for this will make my thread lengthy.
I am not new to developing software,so it's natural to make software more precise and more reliable :-).
There cant be a folder like the file name under the same folder, Explorer wont let it, unless you have file with the same name with an extension (maybe the extension is hidden so it looks like you have folder and file with the same name).
BTW another way to look for the items in Explorer by using Active accessibility. 
Cheers
Last edited by golanshahar; March 18th, 2006 at 07:21 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|