C# Programming
08-02-2009, 02:36 AM
Regards, I am trying to run cmd.exe from a button click event.
this is where I am starting off.
private void button1_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start(@"CMD.exe","attrib C:\\save.txt +s +h");
}
when I click on button1 another instance of the program starts.
also the command window never opens.
am I lame?
this is where I am starting off.
private void button1_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start(@"CMD.exe","attrib C:\\save.txt +s +h");
}
when I click on button1 another instance of the program starts.
also the command window never opens.
am I lame?