Hi,
The sample code below:
using System.Diagnostics;
// Notepad
Process process = new Process();
process.StartInfo.FileName = "notepad";
process.StartInfo.Arguments = "myFile.txt";
process.StartInfo.UseShellExecute = true;
process.Start();
process.WaitForExit();
// Windows Explorer
Process process = new Process();
process.StartInfo.FileName = "explorer";
process.StartInfo.Arguments = "c:\temp";
process.StartInfo.UseShellExecute = true;
process.Start();
process.WaitForExit();
// IE
Process process = new Process();
process.StartInfo.FileName = "file:///e:/temp/myfile.txt";
process.StartInfo.Arguments = "";
process.StartInfo.UseShellExecute = true;
process.Start();
process.WaitForExit();
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"Tomomichi Amano" <to*********@hotmail.com> wrote in message
news:Oz**************@tk2msftngp13.phx.gbl...
How do I load a file(folder) with notepad , internet explorer and explorer
in a C# program?