Click here to Skip to main content
15,910,787 members
Home / Discussions / C#
   

C#

 
GeneralRe: Sending info to command line Pin
ddpn4215-Jun-06 10:02
ddpn4215-Jun-06 10:02 
GeneralRe: Sending info to command line Pin
Dustin Metzgar15-Jun-06 10:15
Dustin Metzgar15-Jun-06 10:15 
AnswerRe: Sending info to command line [modified] Pin
Alexander Wiseman15-Jun-06 10:23
Alexander Wiseman15-Jun-06 10:23 
AnswerRe: Sending info to command line Pin
Dustin Metzgar15-Jun-06 9:01
Dustin Metzgar15-Jun-06 9:01 
GeneralRe: Sending info to command line Pin
Dustin Metzgar15-Jun-06 9:05
Dustin Metzgar15-Jun-06 9:05 
AnswerRe: Sending info to command line Pin
Eric Dahlvang15-Jun-06 10:14
Eric Dahlvang15-Jun-06 10:14 
GeneralRe: Sending info to command line Pin
ddpn4215-Jun-06 10:53
ddpn4215-Jun-06 10:53 
AnswerRe: Sending info to command line [modified] Pin
Eric Dahlvang15-Jun-06 11:16
Eric Dahlvang15-Jun-06 11:16 
Sorry, I didn't actually try it. That is odd. This will work though: (I tried it)

Process oProcess = new System.Diagnostics.Process();
oProcess.StartInfo.FileName = "cmd.exe";
oProcess.StartInfo.Arguments = "/C \"MyBat.bat\"";
oProcess.StartInfo.WorkingDirectory = "C:\\";
oProcess.Start();
oProcess.WaitForExit();


-- modified at 17:18 Thursday 15th June, 2006

[EDIT]
Alexander Wiseman beat me to this answer -> see above[^]
[/EDIT]

----------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters

GeneralRe: Sending info to command line [modified] Pin
ddpn4216-Jun-06 4:31
ddpn4216-Jun-06 4:31 
QuestionCLR Integration. Pin
PrashantJ15-Jun-06 8:26
PrashantJ15-Jun-06 8:26 
AnswerRe: CLR Integration. Pin
Josh Smith15-Jun-06 8:33
Josh Smith15-Jun-06 8:33 
QuestionPanel contrrol are not removing correctly Pin
Ista15-Jun-06 7:39
Ista15-Jun-06 7:39 
AnswerRe: Panel contrrol are not removing correctly Pin
Josh Smith15-Jun-06 8:03
Josh Smith15-Jun-06 8:03 
GeneralRe: Panel contrrol are not removing correctly Pin
Ista15-Jun-06 8:57
Ista15-Jun-06 8:57 
QuestionSerialPort class and opening ports Pin
Member 76109415-Jun-06 6:07
Member 76109415-Jun-06 6:07 
Questionpreventing header in xml file Pin
Yustme15-Jun-06 6:01
Yustme15-Jun-06 6:01 
AnswerRe: preventing header in xml file Pin
Dustin Metzgar15-Jun-06 6:19
Dustin Metzgar15-Jun-06 6:19 
GeneralRe: preventing header in xml file Pin
Dustin Metzgar15-Jun-06 6:34
Dustin Metzgar15-Jun-06 6:34 
GeneralRe: preventing header in xml file Pin
Yustme15-Jun-06 6:55
Yustme15-Jun-06 6:55 
GeneralRe: preventing header in xml file Pin
Dustin Metzgar15-Jun-06 6:59
Dustin Metzgar15-Jun-06 6:59 
GeneralRe: preventing header in xml file Pin
Yustme15-Jun-06 8:10
Yustme15-Jun-06 8:10 
GeneralRe: preventing header in xml file Pin
Dustin Metzgar15-Jun-06 8:28
Dustin Metzgar15-Jun-06 8:28 
GeneralRe: preventing header in xml file Pin
Yustme15-Jun-06 8:43
Yustme15-Jun-06 8:43 
GeneralRe: preventing header in xml file Pin
Dustin Metzgar15-Jun-06 8:59
Dustin Metzgar15-Jun-06 8:59 
GeneralRe: preventing header in xml file Pin
Yustme15-Jun-06 9:17
Yustme15-Jun-06 9:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.