Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Windows file right click

Hi

I have a program that makes list of files on my computer.
When I right click on a file in the list, a form appears and I've added some options like copy, move...

I would like to know if there is a way to show in my program the menu that appears when I click on a file in WindowsExplorer.
For example: I right click on a file "c:\a.txt" and I want to show the same menu that is in WindowsExplorer for the specified file.

I think I'll have to work with API or the registry, but I cannot find what I should do.

P.S.: If you don't understand what I mean, I want to do the same as in TotalCommander when you right click on a file.
[687 byte] By [chrispl] at [2007-11-11 8:27:17]
# 1 Re: Windows file right click
Yes, you can do that in VB Classic.

My recommendation is to get the following book (only available used, starting at $2):

http://www.amazon.com/gp/product/1565926706/sr=8-1/qid=1144765264/ref=sr_1_1/002-6124686-2120046?%5Fencoding=UTF8

It goes into quite a bit of depth on how do interact with the windows shell.

I am sure if you google, you can probably find some good code samples too.
edburdo at 2007-11-11 17:25:32 >
# 2 Re: Windows file right click
are you talking about a popupmenu?
major at 2007-11-11 17:26:29 >
# 3 Re: Windows file right click
I'm talking about the popup menu of Explorer, not my own.
I'll will continue to look for windows shell popup menu in google, if I find the code I'll post it here.
chrispl at 2007-11-11 17:27:28 >