Project Description

This is a very simple SkyDrive viewer that determines the WebDAV addresses to your SkyDrive folders. There is both a console application and a WPF application for displaying the information.

Background

This source code was written as a follow up to a blog post where I described how I used the latest Microsoft Office 2010 beta to discover the apis that Office uses in order to share documents to SkyDrive.

http://www.mikeplate.com/how-to-connect-to-skydrive-with-webdav/

Please don't take the code as any kind of example of good code writing. I wrote it very fast just to help people discover the WebDAV addresses to their SkyDrive folders. I suspect we will see more/better public support of this from Microsoft in the future.

Note: I have not used any libraries for Windows Live ID authentication or WebDAV client access since I wanted to code as little as possible to make it work. That also means that the code assumes that everything in these protocols work as they have for me during testing.

Usage

The solution has three projects. A library with the SkyDrive/WebDAV code in it, a console application and a WPF application. The console client requires Microsoft.NET 2.0 and can be downloaded as the recommended release. Download console client without source

Run the console client from a command line like this with your Windows Live ID credentials:

dumpurls.exe <UserName> <Password>

And you will hopefully see a list of addresses that you can use in mapping up your WebDAV access in Windows. Those addresses can for instance be used in a "net use" command to map drives for them. Note that there is no concept of a "root" in SkyDrive. You must map/access the folders at the "root" individually.

The WPF client requires the latest version of Microsoft.NET which is 3.5 SP1. It does one more thing than the console application, and that is to display the contents of the SkyDrive folder you click on. But this is just a proof-of-concept, that WebDAV access actually work. The WPF application uses WebDAV to find out the contents of the folder (not screenscraping). Download WPF client without source

SkyDriveSimpleViewer.png

Note: Passport1.4 authentication is used by the services, so WebDAV access will only work in Windows (even though the WebDAV part is standard).

Last edited Feb 1, 2010 at 9:06 PM by mikeplate, version 7