Re: Capturing document extension
- From: "David Webber" <dave@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 24 Jan 2007 14:50:43 -0000
"David Wilkinson" <no-reply@xxxxxxxxxxxx> wrote in message
news:eg8mVu7PHHA.4824@xxxxxxxxxxxxxxxxxxxxxxx
PART II
So how am I supposed to capture the .ret extension in each of my
applications? Am I supposed to programmatically alter the "Open with"
mechanism (the relation of which to the HKCR mechanism I have never
understood).
I seem to have versions 8 & 9 of my program on the "open with" pop-up menu.
Both are entitled
"Mozart: the music processor"
and I have to try it to find out which is which. I also have "Mozart
Viewer" - another program with its own icon.
Looking for "Mozart: the music processor" in the registry I find four
entries (with lots of others) in
HKCU\Software\Microsoft\Windows\ShellNoRoam\MUICache
with in each case
key = a full path to program
value = "Mozart: the music processor"
(The four keys correspond with installed versions of MOZART 8 and 9 in
"C:\Program files" and development versions in my Visual Studio projects
folder - in each case the debug build.)
At this moment I am not sure:
- why only 2 appear on the open with menu (maybe I asked for them?)
- which 2 they are
- why the text it "Mozart: the music processor" (though I am clearly the
original author of this phrase)
But
HKCU\Software\Microsoft\Windows\ShellNoRoam\MUICache
is a mine of interesting entries. Batch files I have written to do little
jobs are all in there
key = path to batch file
value = batch file name with .bat lopped off.
Turning to
HKCU\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mz\OpenWithList
I find
key = a, value = mozart32.exe
key = b, value = ieexplore.exe
key=c, value = mozartViewer.exe
key=d, value=notepad.exe
key=MRUList, value=abcd
(I have used NOTEPAD as a cheap and nasty file viewer as the header part is
ASCII).
but nothing to indicate the 4 full paths in the ShellNoRoam entry which is
apparently the only way it could have found the text for the OpenWith menu.
I feel there is something I must be missing here...
You are not alone. This must be documented somewhere!
Dave
--
David Webber
Author MOZART the music processor for Windows -
http://www.mozart.co.uk
For discussion/support see
http://www.mozart.co.uk/mzusers/mailinglist.htm
.
- Follow-Ups:
- Re: Capturing document extension
- From: David Wilkinson
- Re: Capturing document extension
- From: David Webber
- Re: Capturing document extension
- References:
- Capturing document extension
- From: David Wilkinson
- Capturing document extension
- Prev by Date: Re: Capturing document extension
- Next by Date: Giving a list of names
- Previous by thread: Re: Capturing document extension
- Next by thread: Re: Capturing document extension
- Index(es):
Relevant Pages
|