How to execute an exe ,bat,etc files from C# program

Well this is Pretty Simple than  u might ever wonder

just use the code given below




System.Diagnostics.Process.Start( "C:\WINDOWS\system32\CALC.EXE" );

In the Above code (given in red) ,You can execute any file with full Pathname or with

Shorthand like simply "calc.exe" if your file is in same directory of the C# program
Enjoy.........:) 

Comments

Popular posts from this blog

Hack Wifi with Fern Wifi Cracker

Linux Shell Script to count no of occurrences of a digit in a number

How to Decompile JAR files and View Source Code of Java Programs