
VB App in Explorer Right-click menu - again...
Two ways:
1 The manual approach:
In windows explorer, click View|Options (folder options in Win98) and select
the file types tab.
Click "New Type" and enter "Test Type" in the "Description of Type" box, and
".ZZZ" in the "Associated Extension" box. Click "NEW" below the Actions List
box, and in the New Action Dialog, enter an ACTION name "TEST". Either type
the path and filename into the "Application used to perform action" or click
browse and navigate to it. If you understand DDE, you can make this action a
dde execute string if your app is going to support dde (I can explain this
if you are interested. It enables you to open multiple files into one
application, amongst other things!)
Click OK and your new action will be added to the list. Click close and your
file type .zzz is created. Now when you right click on a *.zzz file, you
will get TEST in the menu. Select TEST and your application will be opened
with the file name as the command line argument. Select 10 files, right{*filter*}
TEST and you get 10 instances of your app, one for each file (unless you
used DDE)
Method 2 - the programmatical approach...
If you knoww how to modify registry keys, then you need to dump:
The file extension key has the fiel type name as default value
"EditFlags"=hex:00,00,00,00
FileType\Shell\Action is the key for the action we created
[HKEY_CLASSES_ROOT\ZZZfile\Shell\TEST]
and \command is the key for the command line to execute your app:
--
Chris Petchey
The choices we make dictate the life we lead,
so above all else,
to thine own self be true
Quote:
> Sorry, gang, I looked and looked but haven't come across it - I know it's
> out there, and that bugs me!!
> How do I add my VB App to the Explorer Right-mouse-click menu? You know,
> like all those OTHER cool people do?
> Thanks, and if you tell me where to look for the info, I'll bookmark it -
I
> Promise!
> -Steve