home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!walter!att-out!pacbell.com!ames!sun-barr!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!spool.mu.edu!umn.edu!news.cs.indiana.edu!arizona.edu!misvms.bpa.arizona.edu!dmittleman
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: Re: Visual Basic Question: How to Kill "foreign" task
- Message-ID: <17NOV199209390559@misvms.bpa.arizona.edu>
- From: dmittleman@misvms.bpa.arizona.edu (Daniel Mittleman)
- Date: 17 Nov 1992 09:39 MST
- References: <m#w10cc@rpi.edu>
- Distribution: world,local
- Organization: University of Arizona MIS Department
- Nntp-Posting-Host: misvms.bpa.arizona.edu
- News-Software: VAX/VMS VNEWS 1.41
- Lines: 32
-
- In article <m#w10cc@rpi.edu>, ncc1701@acm.rpi.edu writes...
- >Hi,
- >
- >I'm trying to write a program that does the following:
- >
- >Invokes an external program, not related to the one I'm writing
- >(For example, we'll assume I'm trying to run sol.exe)
- >
- >When certain conditions exist, it terminates that program.
- >
- >The way I do it now is to AppActivate "Solitaire"
- >then SendKeys "%{F4}" (Alt-F4) to kill it.
- >
- >This works great if the program is still running, but
- >if the user has exited solitaire before the conditions are
- >met, some OTHER program gets terminated (sometimes
- >PGM MGR itself!)
- >
- >Is there some way to use the number VBasic returns
- >when you Shell the program?
- >(i.e. something=Shell("C:\win\sol.exe",1) ???
- >
- >HELP!
- >
- >(Please email-I don't do a lot of windows pgming, and
- >don't have time to peruse this group a lot) THANKS!
- >
- I have the same question, so if someone emails to him please also post
- your response.
-
- ===========================================================================
- daniel david mittleman - danny@arizona.edu - (602) 621-2932
-