I want to access my "My documents" folder from my WinForms ToolStrip menu. I am populating ToolStrip with a XML file.
I am storing Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
in my XML file. It is throwing an error.
Can anyone please help?.
This is part of my xml file.
<item name="MSPowerpoint" action="%PROGRAMFILES%\Microsoft Office\office11\POWERPNT.exe" parameters="/n"/>
<item name="MyDocuments" action="Environment.GetFolderPath(Environment.SpecialFolder.Personal" parameters=""/>
<item name="" text="-" />
This is the method to start applicatons.
public void startapp(string s)
{
ProcessStartInfo pst = new ProcessStartInfo();
pst.UseShellExecute = true;
pst.FileName = s;
Process.Start(pst);
}
This is the error i am getting.. "The system cannot find the file specified."