File operations

G

Guest

Hi.
I am working on a WinForms app using VS2005 and C#.
I would like to display information on files and would appreciate if you
could direct me to useful sources of information, sample code etc. Among the
tasks I would like to tackle are:

Display all files in a directory in WinExplorer like manner.

Programmatically optaining file properties like those you get when you right
click on a filename and choose Properties (Summary: Title, Subject, Author,
etc.).

Performing a directory walk (like the one described by Jeffrey Richter in
his 1997 book Advanced Windows).

Obtain file associations programatically (like in Control Panel/Folder
Options/File Types)

This all boils down to, I presume, getting access to the rigtht Windows API
functions from managed code (C#). But all examples I can find are unmanaged
code, either C++, Visual Basic or some scripting language. I have used
unmanaged C++ a lot in the past, but on this project, I have to use managed
C#.

Any suggestions?

Regards,
Gudni
 
J

Jeff Gaines

I would like to display information on files and would appreciate if you
could direct me to useful sources of information, sample code etc. Among
the
tasks I would like to tackle are:

I put the source of a project (in C#) up on the CodeProject at:

http://www.codeproject.com/cs/files/JFileManager31.asp

I think it will do most of what you want but it does use several API calls
(it's impossible without them) although I think it can still be called
'managed'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top