:: How To Run CMD Dos Command in C#.net ::
Its easy you only need to use process
System.Diagnostics.Process.Start(“CMD.exe”,”cd ..”);
this how we do it
if you need to terminate the dos after excution the dos command you just need to put /C
System.Diagnostics.Process.Start(“CMD.exe”,”/C dir”);
you also can yous multiple dos command at the same time like
System.Diagnostics.Process.Start(“CMD.exe”,@”/C cd\ & myapp.exe “);
have a nice day
No comments yet.
Leave a comment
-
Archives
- November 2009 (2)
- October 2009 (5)
- June 2009 (2)
- March 2009 (1)
- January 2009 (2)
- December 2008 (1)
- November 2008 (2)
- September 2008 (10)
- August 2008 (3)
- June 2008 (2)
- May 2008 (1)
- May 2007 (11)
-
Categories
-
RSS
Entries RSS
Comments RSS
