?
Solved

TO clifABB

Posted on 1998-06-29
1
Medium Priority
?
136 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Suggested Courses

771 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