Tim, let me rephrase. I'm not trying to display the shortcut dialog,
only reproduce the behavior that happens when you click 'Find Target'.
For instance, I've generated a file and I want show the user that file
in explorer.

-Kyle Rickey

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tim Roberts
Sent: Thursday, April 03, 2008 11:42 AM
To: Python-Win32 List
Subject: Re: [python-win32] Find Target

Rickey, Kyle W wrote:
>
> I am trying to figure out how to show a specified file in explorer. I 
> know I can call os.startfile(directory) to show the containing 
> directory, but I would like the file to be selected also. Is there an 
> API call that windows makes to do this?
>
>  
>
> For example, right click on a shortcut and go to properties, then 
> click on the 'Find Target' button. Any ideas?
>

You're talking about controlling the UI here.  You could do that by 
finding the Explorer window, trolling through to find the list control, 
find the entry, simulate right-click, etc., but it would be an 
undocumented pain in the rear.

However, everything that's in those dialogs is exposed through the shell

API.  Why don't you just display the dialog yourself?

-- 
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to