home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / os2 / programm / 7521 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  1.7 KB

  1. Path: sparky!uunet!psinntp!dg-rtp!salzo!dburton
  2. From: dburton@salzo.Cary.NC.US (David Burton)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Getting DOS boxes to talk to OS/2
  5. Message-ID: <6De0wB3w165w@salzo.Cary.NC.US>
  6. Date: Tue, 12 Jan 93 05:16:28 EST
  7. Organization: SalzoBoard BBS
  8. Lines: 32
  9.  
  10. In article <C0Mn3A.7zt@undergrad.math.waterloo.edu> 
  11. papresco@cantor.math.uwaterl
  12. >What I'm asking really isn't so complex...I want to start an OS/2
  13. >editor from my DOS mail reader.  An OS/2 unzipper from my DOS term
  14. >program.
  15. >I don't mind setting up complex .cmd files for it.  I don't mind
  16. >compiling something special in DOS.
  17. >Is there any, any way to launch an OS/2 program from a DOS box.  Or is
  18. >there any way to signal a "lurking" OS/2 program to wake up from a DOS
  19. >box.  Or is the only way to make a batch file that polls the file
  20. >system for a flag (YUUUUCH!)?
  21.  
  22. A DOS program (running in a DOS box) can talk to a lurking OS/2 program
  23. via a named pipe.  The latest version of my HOTKEY program, which I
  24. wrote with Peter Fitzsimmons, does exactly that.  To enable hot-keys
  25. from DOS boxes, a small TSR is installed which watches for the hot-keys.
  26. When it sees one, it opens a named pipe ("\PIPE\HOTKEY" in this case),
  27. and writes a short message to it.  That wakes up the lurking OS/2
  28. HOTKEY program via its named pipe server code, and it then does the
  29. hot-key operation (switch to the selected session).
  30.  
  31. I'm new to the Internet stuff, and haven't yet bothered to figure out
  32. how to send files.  However, if you want HOTKEY (with source for all
  33. except the TSR), you can get it from Bix or my BBS.
  34.  
  35. The file name is HOTKEY12.ZIP (earlier versions *won't* do!).
  36. On Bix, it is in the IBM.OS2/LISTINGS area.
  37. My BBS is at 919-233-0106.
  38.  
  39. I hope this helps.
  40.  
  41. -Dave
  42.