Click here to Skip to main content
15,884,473 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi all,

I'm playing about with the WindowsAPICodePack and i've got a few queries regarding how Windows deals with file types.

As part of the API you have the ability to register filetype associations with your application using

C#
RegisterFileAssociations(string progId,
            bool registerInHKCU, string appId, string openWith,
            params string[] extensions)


Simple enough to follow and once done you can have windows keep track of your recently opened files.

But what about folders? How does Windows deal with them? Is there a file extension for folders that is associated with Explorer. Is it possible to associate your program with folders?

I know that's quite a bit of info to request but I've spent quite a while trying to filter through a lot of guff on Google trying to patch together a greater understanding.

I don't normally do any winforms or shell programming (web developer)
so this is all new to me. I'm just trying to piece together a program for an article.

Many thanks in advance for your patience and advice.


Update**********************
Basically I would lke to mimic the behaviour of Windows Explorers recent folders jumplist but I can't find any methods in the documentation that allow this.

My application processes batches of files so it would be nice to add the ability to reopen folders using a jumplist.
Posted
Updated 21-Jan-10 7:28am
v2

1 solution

File associations do not apply to folders. However, there is a concept of Special and Custom folders in Windows. See the links below for more information:

http://en.wikipedia.org/wiki/Special_Folders[^]

http://msdn.microsoft.com/en-us/library/s2esdf4x(VS.80).aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900