tags:

views:

96

answers:

3

How do I map an ftp share folder to a local drive using C#? Is there any class library available for this?

I need to achieve the same functionality as NetDrive(http://www.netdrive.net/) offers using FTP ?

A: 

Perhaps this MSDN article can help.

http://msdn.microsoft.com/en-us/magazine/cc188741.aspx

Marco
@Macro : I need to create Shell Extension for this ?No other way ?
Swapnil Gupta
A: 

Maybe you can leverage someone else's work and get a headstart. The makers of NetDrive for instance offer an SDK - not sure what that requires / costs, however. But it might be worth an inquiry, no?

And maybe, if you combine this approach to define a remote FTP site as a Windows network share, and then use this code in C# to mount a network share as a drive, you might get your job done :-)

marc_s
@marc:But internally it uses SMB protocol not FTP
Swapnil Gupta
You're saying you want to map the "share folder", do you want to map it through FTP or through normal sharing services? You need to be more clear in your questions, there's a reason you're not getting any good answers.
Lasse V. Karlsen
A: 

It's a very tall order - if you actually want a local drive, e.g. X:\, to access an FTP site, you'd surely need to write a driver. Not an easy task.

If you want it to simply appear in Windows Explorer somewhere - you can use the shell extension as Marco's answer suggests. But don't expect to be able to treat it like a regular drive.

Kieren Johnstone