Click here to Skip to main content
15,881,812 members
Home / Discussions / C#
   

C#

 
QuestionWrong COM Port Number Pin
stancrm25-May-09 0:04
stancrm25-May-09 0:04 
AnswerRe: Wrong COM Port Number Pin
Moreno Airoldi25-May-09 3:56
Moreno Airoldi25-May-09 3:56 
GeneralRe: Wrong COM Port Number Pin
Rajesh Anuhya25-May-09 3:58
professionalRajesh Anuhya25-May-09 3:58 
GeneralRe: Wrong COM Port Number Pin
Dave Kreskowiak25-May-09 6:59
mveDave Kreskowiak25-May-09 6:59 
AnswerRe: Wrong COM Port Number Pin
Rajesh Anuhya25-May-09 3:56
professionalRajesh Anuhya25-May-09 3:56 
QuestionHow will I pass argument to Process Pin
Naveed72724-May-09 22:07
Naveed72724-May-09 22:07 
AnswerRe: How will I pass argument to Process Pin
S. Senthil Kumar24-May-09 22:38
S. Senthil Kumar24-May-09 22:38 
AnswerRe: How will I pass argument to Process Pin
Luc Pattyn24-May-09 23:56
sitebuilderLuc Pattyn24-May-09 23:56 
Hi,

I am assuming SCHTASKS is a regular console application, that produces some output (a prompt) in the console or DOS window, and takes some input from there as well.

The easy solution, if provided, is by passing another switch; try "SCHTASKS -h" to see its help.

If no extra switches are available, you should be able to do it with standard stream redirection; have a look at the Process class, StandardInput/StandardOutput properties, and OutputDataReceived events. You probably need to redirect the output (so you can wait for the confirmation prompt to arrive), AND redirect the input stream, so you can writeline "Y" to it.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

QuestionHow can I know the Internet Explorer Information using c#? Pin
svt gdwl24-May-09 21:23
svt gdwl24-May-09 21:23 
AnswerRe: How can I know the Internet Explorer Information using c#? Pin
Manas Bhardwaj24-May-09 23:17
professionalManas Bhardwaj24-May-09 23:17 
QuestionHow can I catch the keyboard events on browser (IE) using c#? Pin
svt gdwl24-May-09 20:58
svt gdwl24-May-09 20:58 
AnswerRe: How can I catch the keyboard events on browser (IE) using c#? Pin
stancrm24-May-09 21:18
stancrm24-May-09 21:18 
QuestionSearching drives and directories Pin
Rajdeep.NET is BACK24-May-09 20:10
Rajdeep.NET is BACK24-May-09 20:10 
AnswerRe: Searching drives and directories Pin
fly90424-May-09 20:23
fly90424-May-09 20:23 
GeneralRe: Searching drives and directories Pin
Rajdeep.NET is BACK24-May-09 20:35
Rajdeep.NET is BACK24-May-09 20:35 
GeneralRe: Searching drives and directories Pin
fly90425-May-09 1:34
fly90425-May-09 1:34 
AnswerRe: Searching drives and directories Pin
stancrm24-May-09 20:53
stancrm24-May-09 20:53 
GeneralRe: Searching drives and directories Pin
fly90425-May-09 1:54
fly90425-May-09 1:54 
GeneralRe: Searching drives and directories Pin
Rajdeep.NET is BACK25-May-09 2:09
Rajdeep.NET is BACK25-May-09 2:09 
AnswerRe: Searching drives and directories Pin
MumbleB24-May-09 22:47
MumbleB24-May-09 22:47 
GeneralRe: Searching drives and directories Pin
Rajdeep.NET is BACK25-May-09 6:59
Rajdeep.NET is BACK25-May-09 6:59 
QuestionHttpWebRequest question Pin
Ehsan Baghaki24-May-09 19:57
Ehsan Baghaki24-May-09 19:57 
AnswerRe: HttpWebRequest question Pin
Manas Bhardwaj24-May-09 23:19
professionalManas Bhardwaj24-May-09 23:19 
Questionchenge plot in the zedgrapg control Pin
hamidhakimi24-May-09 19:22
hamidhakimi24-May-09 19:22 
AnswerRe: chenge plot in the zedgrapg control Pin
_Maxxx_24-May-09 19:38
professional_Maxxx_24-May-09 19:38 

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.