[python-win32] Find Target
Rickey, Kyle W
Kyle.Rickey at bakerhughes.com
Thu Apr 3 19:25:37 CEST 2008
Tim, thanks for your patience :). I think I'm still miscommunicating to
you what I need to do. Let's throw the whole shortcut idea out the
window and start from scratch.
My code generates a file, I want to open the directory (which is known)
containing that file and select it. Since I can open the directory with
os.startfile(), do I still need to get the hwnd of the explorer window
and get the listctrl etc., or is there a simpler way to select a file?
-Kyle Rickey
-----Original Message-----
From: python-win32-bounces+kyle.rickey=bakerhughes.com at python.org
[mailto:python-win32-bounces+kyle.rickey=bakerhughes.com at python.org] On
Behalf Of Tim Roberts
Sent: Thursday, April 03, 2008 12:17 PM
To: Python-Win32 List
Subject: Re: [python-win32] Find Target
Rickey, Kyle W wrote:
> 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.
>
"Find Target" just follows a shortcut and opens the directory containing
that shortcut. The shell library has an API for fetching the target
path from a shortcut file. You could just pull the path from the
shortcut, and startup a new Explorer in that directory.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
_______________________________________________
python-win32 mailing list
python-win32 at python.org
http://mail.python.org/mailman/listinfo/python-win32
More information about the python-win32
mailing list