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