Solved

TO clifABB

Posted on 1998-06-29
1
131 Views
Last Modified: 2010-05-03
Remember my Question on Killing a Shelled App...

Dim retval
    retval = Shell("c:\windows\telnet.exe", vbMaximizedFocus)
    '
    '
    'Process data
    '
    '
    AppActivate retval
    SendKeys "%{F4}", True

Well, it works find for Windows Programs, but te app I shell is in a DOS Box...

Would you know how to Kill a Shelled App that is in a Dos Box?
0
Comment
Question by:idcjavateam
1 Comment
 
LVL 6

Accepted Solution

by:
clifABB earned 0 total points
ID: 1464553
This worked:
  SendKeys "exit{ENTER}", True

To use SendKeys, just send the key sequence that performs the function you want.  In this case, in the Dos box, you would type 'exit' then press enter to close it.  That, then, it what SendKeys will send.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now