Click here to Skip to main content
15,906,081 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to excute cmd from asp.net application?
Posted

1 solution

Dig deeper in this namespace: System.Diagnostics[^]

Here is link in CP:
How to Execute a Command in C# ?[^]

But basically you can also use:
C#
string strCommand;
strCommand= "Your Command Text Here";
System.Diagnostics.Process.Start("CMD.exe",strCommand);


More references:
C#: Running a command prompt and capturing the output[^]

Good luck,
OI
 
Share this answer
 
v2

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900