?
Solved

TO clifABB

Posted on 1998-06-29
1
Medium Priority
?
139 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

850 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