putting an Icon in "My Computer"

Y

yaipa

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
 
B

Brett Hoerner

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?

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.
 
P

Peter Hansen

yaipa said:
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?

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
 
K

kurganme

yaipa said:
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?

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

http://msdn.microsoft.com/library/d...de/shell_adv/namespaceextension/namespace.asp

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

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

Roger Upole

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Forum statistics

Threads
474,270
Messages
2,571,341
Members
48,031
Latest member
rashmi16

Latest Threads

Top