Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Fri, 11 Apr 2008 03:26:00 -0700,    group: microsoft.public.platformsdk.shell        back       


traeting folder as a single file in Win explorer   
Hi 
I would like to accomplish rather peculiar scenario (requested by customer):
I want to display and treat specific folders as single files in Windows 
Explorer shell. 
All folders will have “extension” in their name something like - 
"somename.david" .  Actually each folder of type xxxx.david shall be 
displayed with special icon and “type” in Windows Explorer and if user double 
clicks on it - my application associated with .david  “extension” shall be 
launched. 
 I checked shell interfaces but still can’t figure out what to do here. 
 I’m not sure whether this is possible at all.
Any idea/suggestion?
Thanks a lot, David
date: Fri, 11 Apr 2008 03:26:00 -0700   author:   David

Re: traeting folder as a single file in Win explorer   
David wrote:
> I would like to accomplish rather peculiar scenario (requested by
> customer): I want to display and treat specific folders as single
> files in Windows Explorer shell.
> All folders will have “extension” in their name something like -
> "somename.david" .  Actually each folder of type xxxx.david shall be
> displayed with special icon and “type” in Windows Explorer and if
> user double clicks on it - my application associated with .david 
> “extension” shall be launched.

I don't think this is really possible. You could install a context menu handler for HKCR\Folder and try to set the default menu item, but it still won't work for the folder tree, which overrides any default with its own Expand/Collapse item.

-- 
Jim Barry, Microsoft MVP
date: Fri, 11 Apr 2008 12:53:03 +0100   author:   Jim Barry

Re: traeting folder as a single file in Win explorer   
Jim, 10x for the propmt response
Actually your suggestion may work for me. What I need is 
1.	Associate icon with my “file” type
2.	Launch my app upon click on the “file”
I really don’t mind that “file” will have expand/collapse in Explorer folder 
tree.  The idea is not to hide folder content but to provide fast and easy 
way to parse/open all files from these special folders in my application.
Can you please elaborate on your suggestion? 
How can I change icon for specific folder  - is a 
IShellIconOverlayIdentifier interfca a correct place to begin with?
Best,David


"Jim Barry" wrote:

> David wrote:
> > I would like to accomplish rather peculiar scenario (requested by
> > customer): I want to display and treat specific folders as single
> > files in Windows Explorer shell.
> > All folders will have “extension” in their name something like -
> > "somename.david" .  Actually each folder of type xxxx.david shall be
> > displayed with special icon and “type” in Windows Explorer and if
> > user double clicks on it - my application associated with .david 
> > “extension” shall be launched.
> 
> I don't think this is really possible. You could install a context menu handler for HKCR\Folder and try to set the default menu item, but it still won't work for the folder tree, which overrides any default with its own Expand/Collapse item.
> 
> -- 
> Jim Barry, Microsoft MVP
>
date: Fri, 11 Apr 2008 09:37:02 -0700   author:   David

Re: traeting folder as a single file in Win explorer   
There are two ways that I know of to customize a folder icon. One is to use 
an overlay as you mentioned. The other is to call 
SHGetSetFolderCustomSettings. They each have their pros and cons.

--Eric

"David" wrote:

> Jim, 10x for the propmt response
> Actually your suggestion may work for me. What I need is 
> 1.	Associate icon with my “file” type
> 2.	Launch my app upon click on the “file”
> I really don’t mind that “file” will have expand/collapse in Explorer folder 
> tree.  The idea is not to hide folder content but to provide fast and easy 
> way to parse/open all files from these special folders in my application.
> Can you please elaborate on your suggestion? 
> How can I change icon for specific folder  - is a 
> IShellIconOverlayIdentifier interfca a correct place to begin with?
> Best,David
> 
> 
> "Jim Barry" wrote:
> 
> > David wrote:
> > > I would like to accomplish rather peculiar scenario (requested by
> > > customer): I want to display and treat specific folders as single
> > > files in Windows Explorer shell.
> > > All folders will have “extension” in their name something like -
> > > "somename.david" .  Actually each folder of type xxxx.david shall be
> > > displayed with special icon and “type” in Windows Explorer and if
> > > user double clicks on it - my application associated with .david 
> > > “extension” shall be launched.
> > 
> > I don't think this is really possible. You could install a context menu handler for HKCR\Folder and try to set the default menu item, but it still won't work for the folder tree, which overrides any default with its own Expand/Collapse item.
> > 
> > -- 
> > Jim Barry, Microsoft MVP
> >
date: Tue, 22 Apr 2008 11:21:02 -0700   author:   Eric Smith

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us