Add application to Windows 95 Explorer Right Mouse Menu 
Author Message
 Add application to Windows 95 Explorer Right Mouse Menu

I want to add my application to the Windows 95 Explorer menu that comes up
when you right mouse click on a folder / file.  I would like to have the
selected folder(s) passed to me as parameters.  This would work similar to the
WinZip menu option.

How can it be done in VB 4.0/32-bit??  Care to share some hints on where I can
learn how to do this?  Got a code snippet? :)  

A free copy of the resulting program (currently the 16-bit WinHog being ported
to 32-bit) to the person with the best tips.

Thanx!

Michael D. Price

see the current WinHog at:
http://www.*-*-*.com/



Sat, 05 Jun 1999 03:00:00 GMT  
 Add application to Windows 95 Explorer Right Mouse Menu



Quote:
> I want to add my application to the Windows 95 Explorer menu that comes
up
> when you right mouse click on a folder / file.  I would like to have the
> selected folder(s) passed to me as parameters.  This would work similar
to the
> WinZip menu option.

> How can it be done in VB 4.0/32-bit??  Care to share some hints on where
I can
> learn how to do this?  Got a code snippet? :)  

> A free copy of the resulting program (currently the 16-bit WinHog being
ported
> to 32-bit) to the person with the best tips.

> Thanx!

> Michael D. Price

> see the current WinHog at:
> http://ourworld.compuserve.com/homepages/mprice/winhog.htm

Use the "Command" function to handle your command line arguments.
Example:

Sub Form1_Load()

If Right$(Command,3) = "bmp" then
        Picture1.Picture = LoadPicture(Command)
Endif

End Sub

In your explorer select "view | options" and then click the "file types"
tab.
Look for the certain file you want to use with your program and click the
edit button.
The best thing to do now is to select "New".
Insert a name you want to use for your action, and browse to select your
application in the textbox underneath.
Click "OK" and this action will be registered for the selected file type.
Windows handles the passing of command line arguments so you don't
need to worry about that.

I hope this works for you, it did for me.



Sat, 05 Jun 1999 03:00:00 GMT  
 Add application to Windows 95 Explorer Right Mouse Menu

It's done through the Registry.

Get the book "Using the Windows 95 Registry" ISBN: 0-7897-0785-3

Have fun  :)



Quote:
> I want to add my application to the Windows 95 Explorer menu that comes
up
> when you right mouse click on a folder / file.  I would like to have the
> selected folder(s) passed to me as parameters.  This would work similar
to the
> WinZip menu option.

> How can it be done in VB 4.0/32-bit??  Care to share some hints on where
I can
> learn how to do this?  Got a code snippet? :)  

> A free copy of the resulting program (currently the 16-bit WinHog being
ported
> to 32-bit) to the person with the best tips.

> Thanx!

> Michael D. Price

> see the current WinHog at:
> http://ourworld.compuserve.com/homepages/mprice/winhog.htm



Sat, 05 Jun 1999 03:00:00 GMT  
 Add application to Windows 95 Explorer Right Mouse Menu


Quote:
> I want to add my application to the Windows 95 Explorer menu that comes
up
> when you right mouse click on a folder / file.  I would like to have the
> selected folder(s) passed to me as parameters.  This would work similar
to the
> WinZip menu option.

The 'good' way it should be done is using OLE interfaces, and this is
rather tricky in VB. However, there is some simple solution, and it's the
same as if you're adding context menu commands manually:
1. Open any folder, select View->Options->File Types.
2. Select 'Folder' file type, press Modify.
3. Press 'Add Action', enter the name of action (say, 'Run MyApp') and
something like 'c:\myapp.exe "%1" ' as command line (%1 denotes the item
currently selected, and quotes are necessary for proper handling of
folder/file names with embedded spaces).
4. Click OK several times.
Now the context menu for folder shall contain the new item, clicking which
will launch MyApp.exe with the folder name as argument. Then, open Registry
Editor and search for 'Run MyApp'. Note all keys that were thus added and
their values. Now you can do the same programmatically using API calls for
registry editing.
If you wish to add the same menu for some files, repeat the same for all
file types of your choice. However, if you wish to apply this menu to _all_
files, it's bad way. There should be some key in registry which applies a
menu to all file types, but I can't recall it right now :(.

--
EugeneT



Wed, 09 Jun 1999 03:00:00 GMT  
 Add application to Windows 95 Explorer Right Mouse Menu


Quote:

>> I want to add my application to the Windows 95 Explorer menu that comes
>up
>> when you right mouse click on a folder / file.  I would like to have the
>> selected folder(s) passed to me as parameters.  This would work similar
>to the

There's a recent PC Mag utility that does this for all files and I
believe the provide the code.


Thu, 24 Jun 1999 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. How to add an enrty to right-mouse menu under explorer

2. Windows '95 & the RIGHT Mouse button

3. Right Mouse & Windows '95

4. VB4 Right mouse and Windows 95

5. windows explorer right mouse button

6. Adding to Windows 95 menus

7. Adding and deleting to and from Windows 95 Start menu

8. Adding to Windows 95 Start Menu ?

9. Add a right-Click menu in explorer

10. How to: disable standard windows popup menu on right mouse button

11. Add menu to the right button of the mouse

12. Windows 95 System Menu and PopUp Menus PROBLEM

 

 
Powered by phpBB® Forum Software