Access Gmail Drive through C# .NET
First, let me tell you about Gmail Drive: http://en.wikipedia.org/wiki/GMail开发者_运维问答_Drive
Now what I want is to store some data in a text file or so, timely to this GMail Drive. I am looking for your help on how to do this.
I would appreciate alternatives that you recommend, but be thankful if you provide an insight to this problem only without any alternatives.
From Gdrive,
GMail Drive is a Shell Namespace Extension that creates a virtual filesystem around your Google GMail account, allowing you to use GMail as a storage medium.
so this is simply a virtual drive. There is a way to access virtual drives from c#, using System.IO.IsolatedStorage.
And check out this Performing Isolated Storage Tasks for How to use isolated storage from your application.
Note: I dont have any experience with gdrive before. So it may or maynot work.
Even though there's no drive letter, the volume should be visible. Try the code below as a quick test, and then more info from "here" to see what's on the volume. Then, you should be able to extend all that to read/write files on it, as well.
using System.IO;
foreach( DriveInfo driveInfo in DriveInfo.GetDrives() ) {
// ...
}
Here's a php project for accesing gmail drive , but i have no idea about accessing it through C# .NET
Is this
what you are looking for ? Then i would recommend above php solution, no idea for .NETI have not tried this personally, but heard very good things
Mail.net
The author is always update, he also on twitter alot.
Cheers
精彩评论