File Directory ASP.Net Tutorial

<%@ Page Language="C#" %>
<%@ Import Namespace="System.IO" %>


    protected void Page_Load(object sender, EventArgs e)
    {
        this.Label1.Text = Directory.GetCurrentDirectory();
        Directory.SetCurrentDirectory(@"C:\");
        this.Label2.Text = Directory.GetCurrentDirectory();
    }



    Untitled Page


    
    

        Old Working Directory: 
            
        New Working Directory: