Thursday, 7 January 2010

Map network drive in code

I needed to programmatically map a share drive to access files for a asp.net web application. This works on the app pool identity and doesn’t have mapped drives by default so after a little Googling, I found this :

http://www.codeproject.com/KB/system/mapnetdrive.aspx

It maybe a few years old, but works like a dream!

No comments: