Accessing Special Folders C#

How to create and read files for various purposes to “special” folders   

 

     ///


///


///


///


///


private
void Save_Click(object sender, RoutedEventArgs e)

{

Microsoft.Office.InfoPath.FormControl infoPath = windowsFormsHost.Child as Microsoft.Office.InfoPath.FormControl;

 


string folderName = string.Format(@”{0}\{1}.xml”, Environment.GetFolderPath( Environment.SpecialFolder.ApplicationData), Guid.NewGuid().ToString());

infoPath.XmlForm.SaveAs(folderName);

 

}

Comments

Got something to say?