WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Custom Folder and Folder Association

 
   Home -> Vista -> File Management RSS
Next:  "Could not find this item..." Nothing w..  
Author Message
extraz

External


Since: Sep 16, 2008
Posts: 2



(Msg. 1) Posted: Tue Sep 16, 2008 6:18 am
Post subject: Custom Folder and Folder Association
Archived from groups: microsoft>public>windows>vista>file_management (more info?)

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
Back to top
Login to vote
Wandering

External


Since: Sep 16, 2007
Posts: 214



(Msg. 2) Posted: Tue Sep 16, 2008 3:44 pm
Post subject: Re: Custom Folder and Folder Association [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You have the idea reversed. Make a short cut to start your application, and
have it start in that folder.


"extraz" <guest.DeleteThis@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
Back to top
Login to vote
extraz

External


Since: Sep 16, 2008
Posts: 2



(Msg. 3) Posted: Tue Sep 16, 2008 4:23 pm
Post subject: Re: Custom Folder and Folder Association [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.ico"
[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\{30a7e1b3-e763-4789-a54d-fcc53dcf973a}]
[HKEY_CLASSES_ROOT\CLSID\{30a7e1b3-e763-4789-a54d-fcc53dcf973a}\ShellFolder]
"Attributes"=hex:00,00,00,00

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


Thank you
Simon


--
extraz
Back to top
Login to vote
Jeff Richards

External


Since: Feb 25, 2007
Posts: 62



(Msg. 4) Posted: Wed Sep 17, 2008 3:12 am
Post subject: Re: Custom Folder and Folder Association [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 RemoveThis @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..
>
Back to top
Login to vote
Display posts from previous:   
       Home -> Vista -> File Management All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
  Windows Vista
 Windows Other
 Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET