473,626 Members | 3,974 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Windows Shell Integration: how?

Hi,

I want for my application a Windows Shell Integration (for example like
TortoiseSVN: http://tortoisesvn.tigris.org/), but i can't find anything
about it??

What I basicly wnat is to be able to right-click on a file (or group of
files) in Windows Explorer, and choose 1 our 2 actions to perform with the
file(s).

Any hints, samples, web pages are really appreciated,

Thanks a lot in advance,

Pieter
Feb 6 '06 #1
8 11921
Hello, Pieter!

You need to write shell extension. This will be COM component.
Here are the docs on the subj
( http://msdn.microsoft.com/msdnmag/is.../WindowsShell/ )
( http://www.kbcafe.com/juice/?guid=20041022155459 )
--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Feb 6 '06 #2
>You need to write shell extension. This will be COM component.

No you don't, for simple extensions like this you only really have to
add a few registry entries. It's described at

http://msdn.microsoft.com/library/en...ng/context.asp

And you shouldn't be writing shell extensions in managed code anyway.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Feb 6 '06 #3
Thanks, it seems indeed a less simpeler.
But what's the difference in performance? Isn't a 'real' shell extension
faster? Because with your solution the application isn't yet running...

Just to get a better idea...

Thanks in every case!

"Mattias Sjögren" <ma************ ********@mvps.o rg> wrote in message
news:eV******** ******@TK2MSFTN GP14.phx.gbl...
You need to write shell extension. This will be COM component.


No you don't, for simple extensions like this you only really have to
add a few registry entries. It's described at

http://msdn.microsoft.com/library/en...ng/context.asp

And you shouldn't be writing shell extensions in managed code anyway.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Feb 6 '06 #4
Hello, Mattias!

MS> http://msdn.microsoft.com/library/en...shell/programm
MS> ersguide/shell_basics/shell_basics_ex tending/context.asp

Indeed, Mattias, that is much more simpler :8-)

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Feb 6 '06 #5
>But what's the difference in performance? Isn't a 'real' shell extension
faster?


I doubt it. If anything, reducing the number of extensions should make
Explorer perform better or at least keep the working set down.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Feb 6 '06 #6
Vadym Stetsyak wrote:
You need to write shell extension. This will be COM component.


<pedantmode>
Shell extensions do not use COM. They are COM-like, but they are not
activated by COM and they do not run in COM apartments. If you try to
instantiate a COM object in your extension code you will get an error
from COM stating that no COM apartment has been initialised.

I asked someone who worked on the Win95 shell team about this and he
said it was simply because COM would have added too much to the working
set of the shell.
</pedantmode>

Richard
--
Fusion Tutorial: http://www.grimes.demon.co.uk/workshops/fusionWS.htm
Security Tutorial:
http://www.grimes.demon.co.uk/workshops/securityWS.htm
Feb 6 '06 #7
Ok Thanks. It works, but I still have two small problems which I can't
resolve:
- When I select more than one (x) file and I choose the command in the
Context Menu, it opens my application x times... I would like to open it
only once, and get an array of the selected files...
- How can I get an Icon at the left of my command in the context menu? i
tryed to play a little bit around with the DefaultIcon, but that didn't
work, and I can't find it by looking at the other things in the registry :-:

Thanks a lot!
Feb 7 '06 #8
>- When I select more than one (x) file and I choose the command in the
Context Menu, it opens my application x times... I would like to open it
only once, and get an array of the selected files...
- How can I get an Icon at the left of my command in the context menu? i
tryed to play a little bit around with the DefaultIcon, but that didn't
work, and I can't find it by looking at the other things in the registry :-:

These are things you can only do with a full blown context menu shell
extensions, which is what Vadym mentioned initially. But again, they
shouldn't be written in managed code.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Feb 8 '06 #9

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

Similar topics

3
2376
by: Tomas | last post by:
Hi! I'm looking for a replacement for the standard interactive python shell. So far I've tried IPython and PyCrust. I liked both, but I'm not 100% happy with any of them. My main complaint about IPython is its missing support for multiline editing. To do multiline editing, it has to start an external editor, but then I lose all the nice features like autocompletion. PyCrust supports multiline editing, but the autocompletion is not as...
0
1476
by: miles__ahead | last post by:
Hi. I like to create little utilities for Windows. It's nice to have Shell Integration, such as using the Context Menu. I've googled but haven't seen any Python example code for IContextMenu handlers. Anyone know where I can find some Python examples? Mainly I'm thinking of creating a Python DLL to send messages to running programs when the user selects a command from the Context Menu. TIA
0
4534
by: Zorba.GR | last post by:
IBM DB2 Connect Enterprise Edition v8.2, other IBM DB2 (32 bit, 64 bit) (MULTiOS, Windows, Linux, Solaris), IBM iSoft Commerce Suite Server Enterprise v3.2.01, IBM Tivoli Storage Resource Manager Express Edition v1.3.2 Win, IBM Tivoli System Automation v1.2.0 Linux, IBM Tivoli Workload Scheduler Virtualized Data Centers v8.2 , other IBM Tivoli CDs, WEBSPHERE EVERYPLACE MOBILE PORTAL v5.0 - ALTIUM , other IBM WebSphere Business CDs...
3
1164
by: Chris Dunaway | last post by:
When you double click on a .zip file in a default Windows XP installation, it opens a folder view of the .zip archive and it appears to be well integrated into the OS. In other words, it looks and behaves much like a standard folder. I would like to create this same sort of viewer for my file types. I want the viewer integrated like the XP one for .zip files is. Can someone point me to some resources that describe windows shell...
8
2913
by: Pieter | last post by:
Hi, I want for my application a Windows Shell Integration (for example like TortoiseSVN: http://tortoisesvn.tigris.org/), but i can't find anything about it?? What I basicly wnat is to be able to right-click on a file (or group of files) in Windows Explorer, and choose 1 our 2 actions to perform with the file(s).
10
2255
dfound
by: dfound | last post by:
hi, Can anyone give me links to tutorials on shell integration.I am making a program to encrypt files in BC++ and I need it to show up option to encrypt and decrypt when I right-click on a file(or folder). Can anyone please give me those links. Also please give me the links to tutorial on making a file shredder because I want to know how it works. :-)
1
1526
by: Vitank | last post by:
What i'm trying to accomplish, is to create a custom shell integration that would allow me to pass the file path of the file to that got right-click to a website's <input id="file_name" type="file" name="file_name"> Now, the webpage is on an intranet generated by Ruby / Rail backend. Example of URL: http://domain1.com/document/edit/00001#
0
30205
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: List of autostart locations Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list all the autostart locations for windows? Ans: Here is a comprehensive list of all autostart locations for Windows OSes: NOTE : These are some abbreviations used in this list. Please note them carefully: HKCU = HKEY_CURRENT_USER HKLM = HKEY_LOCAL_MACHINE
0
8705
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8638
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8365
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7196
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5574
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4092
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2626
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1511
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.