Solved

TO clifABB

Posted on 1998-06-29
1
130 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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

744 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

17 Experts available now in Live!

Get 1:1 Help Now