[python-win32] Using DDE to launch a file in an existing window

Matt Harriger mharriger at gmail.com
Thu Dec 6 17:42:31 CET 2007


Hello all,

I have a question about using DDE to launch a file in an existing
application when double-clicked from explorer. I'm trying to use the
built-in windows functionality for doing this by setting the application and
topic keys in HKCR\my_file_type\shell\open\ddeexec. I also have
HKCR\my_file_type\shell\open\command set up to launch my python script if
windows can't find the application through dde ( i.e. it's not currently
running). The python script create a server and registers the system topic
as the very first thing it does. When I double-click a file of this type in
Explorer, I get an error dialog saying that "windows cannot find '
filename.ext' Make sure you typed the name correctly...". Has anyone else
been able to open a file in a running application this way?

Thanks,

--Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20071206/5472356e/attachment.htm 


More information about the python-win32 mailing list