Solved

How to get file selections with shell content menu ?

Posted on 2004-08-31
3
144 Views
Last Modified: 2010-04-05
I would like to build my own shell content menu and get file/folder name that user selected.

Example snap shot:
http://www.taotoon.com/mp3/snap.gif

I just want file/folder name data like these:

O:\temp\bg0023936604.jpg
O:\temp\05407_004.jpg
O:\temp\bg0023936603.jpg
O:\temp\telephone

And then I will use it in my delphi program.


Do you have some source code or web tutorial for beginner ?


0
Comment
Question by:tong111797
3 Comments
 
LVL 4

Assisted Solution

by:Evarest
Evarest earned 60 total points
ID: 11946975
Adding your code to the windows shell is not as easy as it seems.

If you only want to open one file, you can easily add a right-click menu item (instead of open) by creating some registry keys. However, as you want to send the paths of several files to your program, you'll need to go further into Windows Shell.

I myself have never ventured in this field. Some time ago, I searched for a free component that would do just what you ask, but at the time did not find a suitable free component.

However, now i do a search at torry and maybe the following component could help you out:

http://www.torry.net/authorsmore.php?id=2526

The component is called TShellCommand Interface.

I just read the explanation, maybe it's not suited to your needs, though.

If this won't work, the following SHAREWARE component will definately do:

ShellPlus
http://www.shellplus.com

Just see the site for more info. Judging from the screenshots, it's a nice useful component. Sadly it's not free...

Evarest
0
 
LVL 33

Accepted Solution

by:
Slick812 earned 65 total points
ID: 11978796
Hello  tong,  Are you here? ? ?
you do not give enough information to do code for this. . .  And if you are not familar with the methods of the COM  and the IContextMenu interface then you may have trouble with doing this sort of thing
anyway. . . here is an EE page with some code to add tho the context menu for the shell

http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20335006.html
0
 

Author Comment

by:tong111797
ID: 11980053
Thank all you guys. Now I am trying both components and hard codes.

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now