Click here to Skip to main content
15,886,362 members
Articles / Programming Languages / C#

How to Execute a Command in C# ?

Rate me:
Please Sign up or sign in to vote.
4.40/5 (69 votes)
11 May 2008CPOL2 min read 722.8K   12.4K   94  
This article will help you to execute a command in C#, just like we execute a command using the Windows command prompt

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExecuteCommand", "ExecuteCommand\ExecuteCommand.csproj", "{F8CD2161-DAF6-4FA3-91CB-F16D90086A4F}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{F8CD2161-DAF6-4FA3-91CB-F16D90086A4F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{F8CD2161-DAF6-4FA3-91CB-F16D90086A4F}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{F8CD2161-DAF6-4FA3-91CB-F16D90086A4F}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{F8CD2161-DAF6-4FA3-91CB-F16D90086A4F}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
Sandeep has 9+ yrs of IT experience. He is Microsoft Certified Technology Specialist and has been certified for Analyzing Requirements and Defining Microsoft .NET Solution Architectures.
He is an active member of:
1. MSDN Forums
2. CodeProject.com
3. Community-Credit.com
4. Blogspot.com

My Blog
More Info

Comments and Discussions