473,385 Members | 1,587 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

putting an Icon in "My Computer"

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

Nov 4 '05 #1
4 1625
> 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.

Nov 4 '05 #2
yaipa wrote:
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
Nov 4 '05 #3
yaipa wrote:
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/de.../namespace.asp

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

Regards
Kurganme [ http://kurganme.blogspot.com ]
Nov 4 '05 #4
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:11*********************@z14g2000cwz.googlegro ups.com...
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


----== 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 =----
Nov 5 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Pavel | last post by:
Greetings to all - I'm having a problem processing xml with relative dtd URI specified using XSLT: <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE mydoc SYSTEM "my.dtd"> <mydoc> .......
0
by: Grant_S | last post by:
I need to identify the path to a users "My Document" folder where the user has a roaming profile and their "My Documents" folder is mapped to a network share as the H drive (specifically H:\\ -...
6
by: JuLiE Dxer | last post by:
Is there a way via C# to programmatically retrieve the full path name to folders like "My Documents" ?? I'm seeing examples with the use of Shell32 stuff I believe, SHGetSpecialFolderLocation...
1
by: mnlarsen | last post by:
How do I set the default location to "My Computer" when using the GetOpenFileName call? I have tried the following but CSIDL_DRIVES doesn't appear to work. Any ideas? WCHAR szFile =...
8
by: Just Me | last post by:
1)How can I find the folders like "My Recent Document", "Desktop", "My Pictures",... if I want to store a file there? 2) How can I find the icon for those files if I want to display it? ...
8
by: Steve Marshall | last post by:
Hi All, Is it possible to set the InitialDirectory property of an OpenFileDialog so it will open at the "My Computer" level? I want it to open showing all the available drives. If so, what do...
0
by: Renster | last post by:
Folks, Im writing a class library which I need to access a connected device's (phone) memory via UNC or something alone those lines, but cant work out out to do it, eg "\\my computer\nokia...
7
by: tman69 | last post by:
I apologize in advance for the length of this posting and will attempt to simplify as much as possible. I have an automation application in MS Access which generates reports in Excel and emails...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.