Associate a set of directories to an application and to a custom icon

K

Karthik.R

Hi Techies,

I have various folders with "*.tes" format say "sample1.tes",
"sample2.tes", "sample3.tes" in Windows. These folders should be opened
with my installed application "sample.exe" and folders of this type should
be shown with my custom icon "sample.ico". How can I configure in registry
to accept this requirement? Is this possible on first hand with respect to a
set of directories?


Looking forward for someone's reply at earliest,


Regards,
Karthik.
 
D

Dave Patrick

This may help.

http://msdn.microsoft.com/library/d...hell_basics/shell_basics_extending/custom.asp

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Hi Techies,
|
| I have various folders with "*.tes" format say "sample1.tes",
| "sample2.tes", "sample3.tes" in Windows. These folders should be opened
| with my installed application "sample.exe" and folders of this type should
| be shown with my custom icon "sample.ico". How can I configure in registry
| to accept this requirement? Is this possible on first hand with respect to
a
| set of directories?
|
|
| Looking forward for someone's reply at earliest,
|
|
| Regards,
| Karthik.
|
|
 
K

Karthik.R

Hi,

Thanks a lot for this useful information. I have few doubts as I new to
certain Windows concepts like CLSID....

1.


[ExtShellFolderViews]
Default={5984FFE0-28D4-11CF-AE66-08002B2E1262}
{5984FFE0-28D4-11CF-AE66-08002B2E1262}={5984FFE0-28D4-11CF-AE66-08002B2E1262
}

[{5984FFE0-28D4-11CF-AE66-08002B2E1262}]
PersistMoniker=file://Folder.htt

What does this { ....}, Folder.htt(template) indicate? Please throw a kick
start on this so that I can read and extend my knowledge.

2. Is it possible to instruct a folder of *.tes whenever created to have
desktop.ini file automatically added to it?

3. How can I configure in desktop.ini to open the folder in my application
instead of by default in the explorer?

Regards,
Karthik.
 
K

Karthik.R

One more thing related to point 3 query

I meant the folder of type "*.tes" say "test1.tes" when clicked, should open
in my application "test.exe".[ It uses the folder name as argument to my
executable and opens it.].
Should this be done throught Folder.htt template? I am not sure...

Regards,
Karthik.


Karthik.R said:
Hi,

Thanks a lot for this useful information. I have few doubts as I new to
certain Windows concepts like CLSID....

1.


[ExtShellFolderViews]
Default={5984FFE0-28D4-11CF-AE66-08002B2E1262}
{5984FFE0-28D4-11CF-AE66-08002B2E1262}={5984FFE0-28D4-11CF-AE66-08002B2E1262
}

[{5984FFE0-28D4-11CF-AE66-08002B2E1262}]
PersistMoniker=file://Folder.htt

What does this { ....}, Folder.htt(template) indicate? Please throw a kick
start on this so that I can read and extend my knowledge.

2. Is it possible to instruct a folder of *.tes whenever created to have
desktop.ini file automatically added to it?

3. How can I configure in desktop.ini to open the folder in my application
instead of by default in the explorer?

Regards,
Karthik.




Dave Patrick said:
This may help.
http://msdn.microsoft.com/library/d...hell_basics/shell_basics_extending/custom.asp
--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Hi Techies,
|
| I have various folders with "*.tes" format say "sample1.tes",
| "sample2.tes", "sample3.tes" in Windows. These folders should be opened
| with my installed application "sample.exe" and folders of this type should
| be shown with my custom icon "sample.ico". How can I configure in registry
| to accept this requirement? Is this possible on first hand with
respect
to
a
| set of directories?
|
|
| Looking forward for someone's reply at earliest,
|
|
| Regards,
| Karthik.
|
|
 
D

Dave Patrick

No. I doubt that is possible.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| One more thing related to point 3 query
|
| I meant the folder of type "*.tes" say "test1.tes" when clicked, should
open
| in my application "test.exe".[ It uses the folder name as argument to my
| executable and opens it.].
| Should this be done throught Folder.htt template? I am not sure...
|
| Regards,
| Karthik.
|
|
| | > Hi,
| >
| > Thanks a lot for this useful information. I have few doubts as I new to
| > certain Windows concepts like CLSID....
| >
| > 1.
| >
| >
| > [ExtShellFolderViews]
| > Default={5984FFE0-28D4-11CF-AE66-08002B2E1262}
| >
|
{5984FFE0-28D4-11CF-AE66-08002B2E1262}={5984FFE0-28D4-11CF-AE66-08002B2E1262
| > }
| >
| > [{5984FFE0-28D4-11CF-AE66-08002B2E1262}]
| > PersistMoniker=file://Folder.htt
| >
| > What does this { ....}, Folder.htt(template) indicate? Please throw a
| kick
| > start on this so that I can read and extend my knowledge.
| >
| > 2. Is it possible to instruct a folder of *.tes whenever created to
have
| > desktop.ini file automatically added to it?
| >
| > 3. How can I configure in desktop.ini to open the folder in my
application
| > instead of by default in the explorer?
| >
| > Regards,
| > Karthik.
 
K

Karthik.R

Oops....where does the entry for folders to open in explorer gets stored?

I thought it can be configured to open as an individual file association to
an application!!
-Kar
 
D

Dave Patrick

As far as I know no it can't.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Oops....where does the entry for folders to open in explorer gets stored?
|
| I thought it can be configured to open as an individual file association
to
| an application!!
| -Kar
 
M

Mark V

In said:
One more thing related to point 3 query

I meant the folder of type "*.tes" say "test1.tes" when clicked,
should open in my application "test.exe".[ It uses the folder
name as argument to my executable and opens it.].
Should this be done throught Folder.htt template? I am not
sure...

I don't think you can do that. But one could arrange for the custom
executable to receive a fully qualified directory-name and then seek
for and open all the files within it perhaps. SendTo menu might be
helpful there. It may be possible to add a context menu to folders
to "open in xyz.exe" too. But, (and if I understand you correctly)
there is no such mechanism that can "associate" a directory to an
executable by an "extension".
 
K

Karthik.R

Hi,

I didn't mean to associate based on extension. If it is possible to open set
of folders with *.prj format to a custom applicationthen its sufficient. Can
you please elaborate how i should force the open for these folder to open in
say "xyz.exe". Also the context menu for the folders???

Regards,
Karthik.

Mark V said:
In said:
One more thing related to point 3 query

I meant the folder of type "*.tes" say "test1.tes" when clicked,
should open in my application "test.exe".[ It uses the folder
name as argument to my executable and opens it.].
Should this be done throught Folder.htt template? I am not
sure...

I don't think you can do that. But one could arrange for the custom
executable to receive a fully qualified directory-name and then seek
for and open all the files within it perhaps. SendTo menu might be
helpful there. It may be possible to add a context menu to folders
to "open in xyz.exe" too. But, (and if I understand you correctly)
there is no such mechanism that can "associate" a directory to an
executable by an "extension".
 
M

Mark V

In said:
Mark V said:
In said:
One more thing related to point 3 query

I meant the folder of type "*.tes" say "test1.tes" when
clicked, should open in my application "test.exe".[ It uses
the folder name as argument to my executable and opens it.].
Should this be done throught Folder.htt template? I am not
sure...

I don't think you can do that. But one could arrange for the
custom executable to receive a fully qualified directory-name
and then seek for and open all the files within it perhaps.
SendTo menu might be helpful there. It may be possible to add
a context menu to folders to "open in xyz.exe" too. But, (and
if I understand you correctly) there is no such mechanism that
can "associate" a directory to an executable by an "extension".
Hi,

I didn't mean to associate based on extension. If it is possible
to open set of folders with *.prj format to a custom
applicationthen its sufficient. Can you please elaborate how i
should force the open for these folder to open in say "xyz.exe".
Also the context menu for the folders???

Then I am not fully understanding you. I do not know how to force
a folder to be opened (in anything) based solely on it's name.

The fully qualified path to a folder can be passed or sent to an
application. A SendTo link to your application might be used from
a given folder's context menu though. This would "pass" the FQP to
the specified executable (as "%1" or "%*") after which the program
itself would then need to "do something" with the information.
Including ignoring passed but possibly useless information.

You might also investigate the keys
HKCR\Folder\Shell\... and HKCR\Directory\Shell\...
for existing context menu "command"s. You will see explorer.exe in
some of them. Hope that helps some.
 
K

Karthik.R

Hi,

Adding the context menu "SendTo" facillity for the folder will afftect the
entire folders in the system to have this property right? or can it be done
for a particular set of folders?

Regards,
Karthik.


Mark V said:
In said:
Mark V said:
In microsoft.public.win2000.registry Karthik.R wrote:

One more thing related to point 3 query

I meant the folder of type "*.tes" say "test1.tes" when
clicked, should open in my application "test.exe".[ It uses
the folder name as argument to my executable and opens it.].
Should this be done throught Folder.htt template? I am not
sure...

I don't think you can do that. But one could arrange for the
custom executable to receive a fully qualified directory-name
and then seek for and open all the files within it perhaps.
SendTo menu might be helpful there. It may be possible to add
a context menu to folders to "open in xyz.exe" too. But, (and
if I understand you correctly) there is no such mechanism that
can "associate" a directory to an executable by an "extension".
Hi,

I didn't mean to associate based on extension. If it is possible
to open set of folders with *.prj format to a custom
applicationthen its sufficient. Can you please elaborate how i
should force the open for these folder to open in say "xyz.exe".
Also the context menu for the folders???

Then I am not fully understanding you. I do not know how to force
a folder to be opened (in anything) based solely on it's name.

The fully qualified path to a folder can be passed or sent to an
application. A SendTo link to your application might be used from
a given folder's context menu though. This would "pass" the FQP to
the specified executable (as "%1" or "%*") after which the program
itself would then need to "do something" with the information.
Including ignoring passed but possibly useless information.

You might also investigate the keys
HKCR\Folder\Shell\... and HKCR\Directory\Shell\...
for existing context menu "command"s. You will see explorer.exe in
some of them. Hope that helps some.
 
M

Mark V

In said:
Hi,

Adding the context menu "SendTo" facillity for the folder will
afftect the entire folders in the system to have this property
right? or can it be done for a particular set of folders?
[ ]

Mostly these are all system-wide. Some "folders" (system folders)
are not "directories" though and SendTo does not appear on system
folders context menus either.

Guessing that with custom DLLs and so forth it might be possible to
have a context menu entry appear on "folders" with a "special" name
format. Such custom shell extentions are beyond my experience.
Perhaps there are methods unknown to me that can do what you require.
Have you tried Windows Shell Programming groups?

I'll post your need elsewhere on the chance that someone may know of
a solution. Don't hold your breath <G>.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top