Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Shell Extension Custom Folder and Folder Association

Reply
Thread Tools Display Modes

Shell Extension Custom Folder and Folder Association

 
 
extraz
Guest
Posts: n/a

 
      09-16-2008

Hi,

Just wondering if it is possible to make a folder association on
windows xp/vista

Basically I have a folder with alot of things in it and I want my users
to just double click on that folder then it will launch my application
and have my application to go through the contents inside that folder. I
know how to do a file assoication but I really want to implement folder
association.

the reason behind this is because I want my application to produce
these custom folders (many of these "packages") and when my users double
click on these "packages" instead of openning it as a folder, it will
launch my application and go through these "packages", is kind of like a
portable thing..

I have been experimenting with things, the code below sort out some of
my problems, but not exactly what I want...

if I rename a Vista folder and add the extension of the CLSID i.e.

MyCustomFolder.{30a7e1b3-e763-4789-a54d-fcc53dcf973a}]
(Please Refer to the code below)

it will create MyCustomfolder, but it does not give open my application
via double click


Code:
--------------------

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{30a7e1b3-e763-4789-a54d-fcc53dcf973a}]
@="MyCustomFolder"

[HKEY_CLASSES_ROOT\CLSID\{30a7e1b3-e763-4789-a54d-fcc53dcf973a}\DefaultIcon]
@="C:\\Users\\Simon\\Desktop\\icon\\mycustomicon.i co"

[HKEY_CLASSES_ROOT\CLSID\{30a7e1b3-e763-4789-a54d-fcc53dcf973a}\InProcServer32]
@="shell32.dll"
"ThreadingModel"="Apartment"

[HKEY_CLASSES_ROOT\CLSID\{30a7e1b3-e763-4789-a54d-fcc53dcf973a}\Shell]

[HKEY_CLASSES_ROOT\CLSID\{30a7e1b3-e763-4789-a54d-fcc53dcf973a}\Shell\Open MyCustomFolder]

[HKEY_CLASSES_ROOT\CLSID\{30a7e1b3-e763-4789-a54d-fcc53dcf973a}\Shell\Open MyCustomFolder\Command]
@="C:\\Program Files\\MyApplication.exe"

[HKEY_CLASSES_ROOT\CLSID\{30a7e1b3-e763-4789-a54d-fcc53dcf973a}\ShellEx]

[HKEY_CLASSES_ROOT\CLSID\{30a7e1b3-e763-4789-a54d-fcc53dcf973a}\ShellEx\PropertySheetHandlers]

[HKEY_CLASSES_ROOT\CLSID\{30a7e1b3-e763-4789-a54d-fcc53dcf973a}\ShellEx\PropertySheetHandlers\{30a7e 1b3-e763-4789-a54d-fcc53dcf973a}]

[HKEY_CLASSES_ROOT\CLSID\{30a7e1b3-e763-4789-a54d-fcc53dcf973a}\ShellFolder]
"Attributes"=hex:00,00,00,00


--------------------



Can someone kindly shed some light?

Thank you so much
Simon


--
extraz
Posted via http://www.vistaheads.com

 
Reply With Quote
 
 
 
 
Ringmaster's Psychiatrist
Guest
Posts: n/a

 
      09-17-2008

"Theory of Everything" <> wrote in message
news:48d04803$...
> me thinks you are going about this the wrong way!
>


That is your first mistake. You don't think. You are just an idiot. Get
away from the computer. Run far far away.




 
Reply With Quote
 
emdktl
Guest
Posts: n/a

 
      10-28-2008
try:

[HKEY_CLASSES_ROOT\CLSID\{30a7e1b3-e763-4789-a54d-fcc53dcf973a}\Shell\Open\Command]@="C:\\Program Files\\MyApplication.exe"

this is the standart to open on doubleclick

you don't hav to rename the folder
you can use desktop. ini with:
[.ShellClassInfo]
CLSID={30a7e1b3-e763-4789-a54d-fcc53dcf973a}and maby it does not work
becouse your parh is not quoted but it contains a space do it chould be quoted



 
Reply With Quote
 
Peter Foldes
Guest
Posts: n/a

 
      10-28-2008
To whom and to what did you address this post of your to

--
Peter

Please Reply to Newsgroup for the benefit of others
Requests for assistance by email can not and will not be acknowledged.

"emdktl" <> wrote in message news:7A068C6D-9D9C-49EA-9E60-...
> try:
>
> [HKEY_CLASSES_ROOT\CLSID\{30a7e1b3-e763-4789-a54d-fcc53dcf973a}\Shell\Open\Command]@="C:\\Program Files\\MyApplication.exe"
>
> this is the standart to open on doubleclick
>
> you don't hav to rename the folder
> you can use desktop. ini with:
> [.ShellClassInfo]
> CLSID={30a7e1b3-e763-4789-a54d-fcc53dcf973a}and maby it does not work
> becouse your parh is not quoted but it contains a space do it chould be quoted
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Folder and Folder Association extraz Windows Vista File Management 3 09-16-2008 10:27 PM
Add Shell Folder? John Windows Vista General Discussion 5 03-06-2008 02:39 AM
shell folder icon not shown dodo Windows Vista General Discussion 4 09-08-2007 01:20 PM
User Shell Folder Redirection Broken ??? Synapse Syndrome Windows Vista File Management 4 03-17-2007 11:35 AM
Shell Folder Icons Missing indigoblue Windows Vista File Management 7 02-09-2007 02:51 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59