home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / os2 / misc / 40396 < prev    next >
Encoding:
Internet Message Format  |  1992-12-26  |  2.5 KB

  1. Xref: sparky comp.os.os2.misc:40396 comp.os.os2.apps:9663
  2. Newsgroups: comp.os.os2.misc,comp.os.os2.apps
  3. Path: sparky!uunet!spool.mu.edu!sdd.hp.com!swrinde!ringer!mlevis
  4. From: mlevis@ringer.cs.utsa.edu (Mike Levis) (OS/2)
  5. Subject: Re: MODEing selected OS/2 sessions
  6. Message-ID: <1992Dec26.074303.11567@ringer.cs.utsa.edu>
  7. Organization: University of Texas at San Antonio
  8. References: <92360.202503U09046@uicvm.uic.edu>
  9. Date: Sat, 26 Dec 1992 07:43:03 GMT
  10. Lines: 46
  11.  
  12. In article <92360.202503U09046@uicvm.uic.edu> Bob Jackiewicz <U09046@uicvm.uic.edu> writes:
  13. >Hi Netters,
  14. >   I have a few programs which I would like to preform a MODE CO80,40 when
  15. >I start them from a program icon. Is there a way for me to do this
  16. >without typing it in everytime? I know I could create a .cmd file for the
  17. >programs, but I'd rather not, as this will just create more and more files.
  18. >I know I can write one .cmd file and take all arguments, but I don't want to.
  19.  
  20. Use the /k parameter for CMD.EXE:
  21.    1.  Open the settings for your program object.
  22.    2.  For ``Path and file name:'' use:   *
  23.    3.  For ``Parameters:'' use:           /k "mode co80,40 & myprogram"
  24.        (use double quotes)
  25.        Of course, substitute the your program name (and path, if needed)
  26.        where I have ``myprogram''.
  27.    4.  You can use ``&'' more times as needed.  Alternatively, you can
  28.        use ``&&'' instead.  (The former separates multiple commands
  29.        which are unconditionally executed.  The latter separates multiple
  30.        commands which are executed *only* if the previous command
  31.        succeeds i.e. "mode co80 && myprogram" means myprogram will execute
  32.        only if mode succeeds.)
  33.  
  34. You might want to know more about the OS/2 command operators.  Open up
  35. the "Master Help Index" object and double-click on "pipe, using a".
  36. You'll see the command operators documentation hiding there.
  37.  
  38.  
  39. >   I seem to remember there being a parameter, a '%' one, which would let
  40. >me run a short program before the main one would be run. Alas, HELP is of
  41. >no help.
  42.  
  43. Ummm... I think you might be referring to the %* parameter which allows
  44. you to give the actual parameter by dragging a data object onto the
  45. program object (i.e. OS/2 will execute the program object after substituting
  46. the name of the dragged data object where the %* is).
  47.  
  48.  
  49. >   Thanks for any info.
  50.  
  51. Hope this helps.
  52.  
  53. -- 
  54. ======= Mike Levis   mlevis@ringer.cs.utsa.edu =======
  55. ::  ftp ftp-os2.nmsu.edu (128.123.35.151) for OS/2  ::  .--.
  56. ::  software & information.   Get /pub/os2/00Index  :: (OS/2)
  57. ::::::::  & /pub/os2/all/info/faq/faq20h.txt  ::::::::  ~--~
  58.