CB
Clay Burch
Syncfusion Team
May 16, 2002 10:20 AM UTC
You can launch explorer.exe using the Process class and set StartInfo.Arguments to start it up in a different folder.
private void button1_Click(object sender, System.EventArgs e)
{
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = @"explorer.exe";
proc.StartInfo.Arguments = @"D:\";
proc.Start();
}
CB
Clay Burch
Syncfusion Team
May 16, 2002 10:28 AM UTC
I am not sure this is what you want to do in your case, but to execute a DOS command, you can use code such as
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = @"cmd.exe";
proc.StartInfo.Arguments = @"/c cd A:\";
proc.Start();