Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hello codeproject..
i just need information and explanation why in the C# programming we can not use
shell command like in the VB.Net programming?

this below code is an example how to cal calculator.exe using shell command in VB.Net

VB
shell("calc")


how to implement it in the C# programming?
Posted

1 solution

 
Share this answer
 
v2
Comments
Gun Gun Febrianza 29-May-13 12:27pm    
ok i am trying.. i will give you my report soon :)
Gun Gun Febrianza 29-May-13 12:47pm    
thank you i can execute it :)

Process myProcess = new Process();
myProcess.StartInfo.UseShellExecute = true;
// You can start any process, HelloWorld is a do-nothing example.
myProcess.StartInfo.FileName = "calc.exe";
myProcess.StartInfo.CreateNoWindow = true;
myProcess.Start();

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