alina.ionescu
Programming, Books and other things I like...
Thursday, July 12, 2012
Open cmd.exe in specific directory
If you need to open cmd.exe in specific directory and run a command, here is what you need to do:
var
processStartInfo =
new
ProcessStartInfo
();
processStartInfo.WorkingDirectory =
@"c:\"
;
processStartInfo.FileName =
"cmd.exe"
;
// set additional properties
Process
proc =
Process
.Start(processStartInfo);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment