Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to get file selections with shell content menu ?

Posted on 2004-08-31
3
147 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 34

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

828 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