home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / mswindo / programm / misc / 3490 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.7 KB

  1. 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
  2. Newsgroups: comp.os.ms-windows.programmer.misc
  3. Subject: Re: Visual Basic Question: How to Kill "foreign" task
  4. Message-ID: <17NOV199209390559@misvms.bpa.arizona.edu>
  5. From: dmittleman@misvms.bpa.arizona.edu (Daniel Mittleman)
  6. Date: 17 Nov 1992 09:39 MST  
  7. References: <m#w10cc@rpi.edu>
  8. Distribution: world,local
  9. Organization: University of Arizona MIS Department
  10. Nntp-Posting-Host: misvms.bpa.arizona.edu
  11. News-Software: VAX/VMS VNEWS 1.41    
  12. Lines: 32
  13.  
  14. In article <m#w10cc@rpi.edu>, ncc1701@acm.rpi.edu writes...
  15. >Hi,
  16. >I'm trying to write a program that does the following:
  17. >Invokes an external program, not related to the one I'm writing
  18. >(For example, we'll assume I'm trying to run sol.exe)
  19. >When certain conditions exist, it terminates that program.
  20. >The way I do it now is to AppActivate "Solitaire"
  21. >then SendKeys "%{F4}" (Alt-F4) to kill it.
  22. >This works great if the program is still running, but
  23. >if the user has exited solitaire before the conditions are
  24. >met, some OTHER program gets terminated (sometimes
  25. >PGM MGR itself!)
  26. >Is there some way to use the number VBasic returns
  27. >when you Shell the program?
  28. >(i.e. something=Shell("C:\win\sol.exe",1) ???
  29. >HELP!
  30. >(Please email-I don't do a lot of windows pgming, and
  31. >don't have time to peruse this group a lot)  THANKS!
  32.     I have the same question, so if someone emails to him please also post
  33.     your response.
  34.  
  35. ===========================================================================
  36. daniel david mittleman     -     danny@arizona.edu     -     (602) 621-2932
  37.