home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / os2 / apps / 4754 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  1.6 KB

  1. Xref: sparky comp.os.os2.apps:4754 comp.os.os2.misc:25544
  2. Newsgroups: comp.os.os2.apps,comp.os.os2.misc
  3. Path: sparky!uunet!gatech!taco!garfield.catt.ncsu.edu!harris
  4. From: harris@garfield.catt.ncsu.edu (Michael Harris)
  5. Subject: Re: PM & ICON Title manipulation
  6. Message-ID: <harris.712098965@garfield.catt.ncsu.edu>
  7. Sender: news@ncsu.edu (USENET News System)
  8. Organization: North Carolina State University
  9. References: <92205.084247MARK@wvnvm.wvnet.edu>
  10. Date: Sat, 25 Jul 1992 21:16:05 GMT
  11. Lines: 27
  12.  
  13. <MARK@wvnvm.wvnet.edu> writes:
  14.  
  15. >I have mulitple versions of IBM"S TN3270.EXE program running concurrently
  16. >which are logged on to several systems with different userid's. I do not
  17. >always use the same userids day in and day out, thus
  18. >I am looking for a way to dynamically change the PM title bar and ICON
  19. >title from a ReXX or C program.
  20.  
  21. Assuming that from the command line you are doing something like:
  22.  
  23. [c:\] tn3270 host1
  24.  
  25. You can write a .CMD file that looks like:
  26.  
  27. start "TN3270 Logged on host: %1" /win -b -h tn3270.exe
  28.  
  29. In .CMD files (the OS/2 version of .BAT files), %1 expands to the first arg.,
  30. %2 the second, etc. If you only have one id per host, you could use check
  31. the hostname and also insert the userid automatically.
  32.  
  33. Take a look at the online command reference for more help.
  34.  
  35.  
  36. ______________________________________________________________________________
  37.      Michael Harris - harris@catt.ncsu.edu or harris@carvm3.vnet.ibm.com
  38.  System Administrator, Computer & Technologies Theme Program, NC State Univ.
  39. (My opinions are my own and do not represent those of NCSU or IBM Corporation)
  40.