Quote:
> For some reasons I have to create an instance of a cmd-window and send
> command there.
For some reasons? Some reasons that would prevent you from writing a batch file,
and executing that?
Quote:
> Now I have some problem, because I made this with sendkey.
Ouch. Bad call.
Quote:
> 1. I cannot control when in the cmd-window an answer ist promted
Of course not.
Quote:
> 2. I cannot guarantee that the windows will be closed (Maybe I can get the
> handle from this window an force it to close)
There's no nice way to say this, but you probably don't really need to do this *if*
you redefine the problem and use a more appropriate solution.
Quote:
> If someone has experience in contolled executing of command in cmd-windows
> please help.
Happy to, but first you need to state the actual problem.
--
.NET: It's About Trust!
http://vfred.mvps.org