Custom Folder and Folder Association

Posted: 09-16-2008, 11:18 AM

Hi

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

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

I am trying to make a shell extension through playing around wit
registry, I have been reading forums and tutorials, not much luck. Th
closest thing I encounter is
'_http://www.pctools.com/guides/registry/detail/73/_
(http://www.pctools.com/guides/registry/detail/73/

but this is not exactly want I want. I want it to be detect vi
extension. I have been experimenting things like make an empty folde
with a CLSID (modify in regedit but it is not correct) and add tha
extension ID to an empty folder, i.e. folder.{21321-21312..-..} tha
seem solve some of my problem, like the icon changes and you can pu
things in it, but when try to access via code, it recongise it as
file, not a folder

Can someone kindly shed some light

Thank yo
Simo

--
extraz

Custom Folder and Folder Association


Responses to "Custom Folder and Folder Association"

Wandering
Guest
Posts: n/a
 
Re: Custom Folder and Folder Association
Posted: 09-16-2008, 08:44 PM
You have the idea reversed. Make a short cut to start your application, and
have it start in that folder.


"extraz" <guest@unknown-email.com> wrote in message
news:8da045db3a9ab81b90ee2a11db0c6169@nntp-gateway.com...
>
> 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.
>
> I am trying to make a shell extension through playing around with
> registry, I have been reading forums and tutorials, not much luck. The
> closest thing I encounter is
> '_http://www.pctools.com/guides/registry/detail/73/_'
> (http://www.pctools.com/guides/registry/detail/73/)
>
> but this is not exactly want I want. I want it to be detect via
> extension. I have been experimenting things like make an empty folder
> with a CLSID (modify in regedit but it is not correct) and add that
> extension ID to an empty folder, i.e. folder.{21321-21312..-..} that
> seem solve some of my problem, like the icon changes and you can put
> things in it, but when try to access via code, it recongise it as a
> file, not a folder.
>
> Can someone kindly shed some light?
>
> Thank you
> Simon
>
>
> --
> extraz
extraz
Guest
Posts: n/a
 
Re: Custom Folder and Folder Association
Posted: 09-16-2008, 09:23 PM

Hi,

Thanks for the reply

Sorry, I didnt explain myself clear enough in my previous post, the
reason I want 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

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


Thank you
Simon


--
extraz
Jeff Richards
Guest
Posts: n/a
 
Re: Custom Folder and Folder Association
Posted: 09-16-2008, 10:27 PM
If your application is producing these packages then they should not be
folders, as presumably they should not be accessed other than by your
application.

You should use a zipping or archiving utility to create an executable
'package'. Use the option that invokes an application when the user
executes the 'package', and nominate your application as the one to be
invoked.
--
Jeff Richards
MS MVP (Windows - Shell/User)
"extraz" <guest@unknown-email.com> wrote in message
news:da919b95d14e792e499f15f52b06e54c@nntp-gateway.com...
>
> Hi,
>
> Thanks for the reply
>
> Sorry, I didnt explain myself clear enough in my previous post, the
> reason I want 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..
>

 
LinkBack Thread Tools Display Modes
 


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 On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom System Folder won't show in Folder Pane Keith Miller Customize Windows XP 2 03-02-2004 08:58 PM
Folder association? Bill1954 Windows XP Accessibility 11 01-03-2004 09:28 PM
Folder association? Bill1954 Windows XP Help & Support 0 12-28-2003 08:51 PM
Association Folder Options Diane Windows XP Music 1 10-14-2003 06:29 AM
Folder Opening Association Justin Windows XP 1 07-09-2003 10:43 PM