Tim/Scott, thanks for your replies that is exactly what I needed! :bow: Thanks for both of your times.
-Kyle Rickey -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Roberts Sent: Thursday, April 03, 2008 12:44 PM To: Python-Win32 List Subject: Re: [python-win32] Find Target Rickey, Kyle W wrote: > 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? > You're in luck! There IS a simple solution to the problem as you just stated it: explorer /select,c:\windows\notepad.exe For future reference, here's a knowledge base article that describes the command-line parameters to explorer: http://support.microsoft.com/kb/130510 -- 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