|
Prev: Excel workbook macro cannot find personal.xls
Next: Strange behaviour when printing outside db.
From: Nijazi Halimaji on 26 Jun 2008 04:47 Hello For some reasons I have to create an instance of a cmd-window and send command there. Now I have some problem, because I made this with sendkey. 1. I cannot control when in the cmd-window an answer ist promted 2. I cannot guarantee that the windows will be closed (Maybe I can get the handle from this window an force it to close) If someone has experience in contolled executing of command in cmd-windows please help. Thanks alot n.h.
From: Jan Hyde (VB MVP) on 26 Jun 2008 05:57 "Nijazi Halimaji" <nospam(a)gmx.ch>'s wild thoughts were released on Thu, 26 Jun 2008 10:47:45 +0200 bearing the following fruit: >Hello > >For some reasons I have to create an instance of a cmd-window and send >command there. > >Now I have some problem, because I made this with sendkey. > >1. I cannot control when in the cmd-window an answer ist promted > >2. I cannot guarantee that the windows will be closed (Maybe I can get the >handle from this window an force it to close) > >If someone has experience in contolled executing of command in cmd-windows >please help. > >Thanks alot > >n.h. Why don't you tell us exactly what you are trying to do. We may be able to suggest a better way of doing it, even if we can't it would help us understand the issue a little better. -- Jan Hyde https://mvp.support.microsoft.com/profile/Jan.Hyde
From: Karl E. Peterson on 26 Jun 2008 13:33 Nijazi Halimaji wrote: > 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? > Now I have some problem, because I made this with sendkey. Ouch. Bad call. > 1. I cannot control when in the cmd-window an answer ist promted Of course not. > 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. > 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
|
Pages: 1 Prev: Excel workbook macro cannot find personal.xls Next: Strange behaviour when printing outside db. |