Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

putting an Icon in "My Computer"

0 views
Skip to first unread message

yaipa

unread,
Nov 3, 2005, 9:23:50 PM11/3/05
to
All,

I've been asked by my boss to put an Icon in WinXP's "My Computer" for
a utility we use around the shop. My tool of choice is of course
Python and therefore what I am using to attempt my given task. I have
no trouble putting Icons in the WinXP Toolbar using Python, but have
totally failed to get an Icon to appear in My Computer. Any Idea on
why and maybe how to get around this using Python?

Thanks,

Alan

Brett Hoerner

unread,
Nov 3, 2005, 9:28:49 PM11/3/05
to

I'm pretty sure the My Computer menu is limited to devices and special
Windows folders like My Documents, etc. I've never seen a program add
an icon there, and I don't think its allowed through the API.

Peter Hansen

unread,
Nov 3, 2005, 9:32:37 PM11/3/05
to

How would you do this if you were not using Python?

(Hint, if the answer is "I have no idea", then it's usually an
indication that this is not a Python issue, and that you should be
seeking your answer in a Windows-specific forum, or maybe in the
documentation on Microsoft's web site. Then, once you know what API or
registry settings are required to set this up, you can generally map
that easily to the pywin32 stuff or maybe ctypes using Python.)

(Of course, you might also luck out, as people often do, since there are
real Windows expert types hanging out here and they might help you out
anyway.)

-Peter

kurganme

unread,
Nov 3, 2005, 10:13:36 PM11/3/05
to

This is not an easy task.
Here is a good starting point:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_adv/namespaceextension/namespace.asp

The python could not be a good choice in this case.

Regards
Kurganme [ http://kurganme.blogspot.com ]

Roger Upole

unread,
Nov 5, 2005, 1:46:40 AM11/5/05
to
There's an example of how to add an item to the shell
namespace in the Pywin32 demos:
\win32comext\shell\demos\servers\shell_view.py

hth
Roger

"yaipa" <ya...@yahoo.com> wrote in message news:1131071030....@z14g2000cwz.googlegroups.com...

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----

0 new messages