Add three buttons, for notepad, calculator and command prompt. Further add style to the button.

Step 2: Generate Click event of button
Generate Click event for each button.
Step 3:Call exe using System.Diagnostics
On the click event of first button place following code
System.Diagnostics.Process.Start("C:\\WINDOWS\\system32\\notepad.exe");
On the click event of second button place following code
System.Diagnostics.Process.Start("C:\\WINDOWS\\system32\\calc.exe"); On the click event of third button place following code System.Diagnostics.Process.Start("C:\\WINDOWS\\system32\\cmd.exe"); The start method is used to execute an exe from web page. The start method is a member of Process class which is under System.Diagnostics name space. Step 4: Click on any button Clicking on Notepad button will open notepad from the specified path in the click event
![]()
Clicking on Calculator button will open Calculator from the specified path in the click event
![]()
Clicking on Command Prompt button will open Command Prompt from the specified path in the click event


ShankeyPosted May 4, 2011, 4:58 AM
Thanks for the appreciation
Dinesh BeniwalPosted May 3, 2011, 7:02 AM
Useful Blog....