How to get the path that usually looks like %SystemDrive%\\inetpub\\wwwroot ?
I guess it\'s something to do with Microsoft.Web.Administration.Se
Server.MapPath
or
Request Object Paths Available
RequestObject Property
PhysicalApplicationPath -Returns local file system path of the virtual root for this app. c:\inetpub\wwwroot\webstore
PhysicalPath -Returns the local file system path to the current script or path. c:\inetpub\wwwroot\webstore\admin\paths.aspx
Updates
To access iis from the windows application go through this article : Modification of IIS Metabase in C# ( For IIs 6.0,5.0)