Article View: comp.os.os2.programmer
Article #2079Re: Example code to insert cmd files in startup folder
From: Robert Rittenhouse
Date: Thu, 15 Oct 1992 12:15
Date: Thu, 15 Oct 1992 12:15
40 lines
2159 bytes
2159 bytes
dic5340@hertz.njit.edu (David Charlap) writes:
> In article <92283.195245RONY@awiwuw11.wu-wien.ac.at> RONY@awiwuw11.wu-wien.ac
> >Larry:
> >
> >We are backlogged a week, so you might know the answer already.
> >
> >Create e.g. an OS/2-window-object, open the object-menu, choose open
> >settings, choose program.
> >
> >Save the settings.
> >
> >Move or shadow the object to the Startup-folder.
>
> You can also create a file called STARTUP.CMD in the root of your boot
> volume. This is the old (OS/2 1.2) way of starting up apps, but it
> works. You just "start" or "detach" apps from it. Be sure to end the
> file with an "exit" statement or the window will remain open at a
> prompt.
>
> --
> David Charlap |"there aren't 50,000 things for which it's worth writi
> dic5340@hertz.njit.edu| software; and the computer industry doesn't have enou
> ----------------------+ programmers to create that much good software.
> Therefore, most of it must be worthless" -- Boris Beizer "The Frozen Keyboard
I have a STARTUP.CMD file with the code from one of the redbooks that's
supposed to keep programs and stuff from starting. The OS/2 Command
Window stays open even though the file ends with EXIT. What am I
missing here: Code follows
/* Clear startup programs from OS2.INI */
call RxFuncAdd 'SysIni','RexxUtil','SysIni'
call SysIni,'PM_WorkPlace:Restart','DELETE:'
call SysIni,'FolderworkareaRunningObjects','DELETE:'
exit
Rob Rittenhouse
Rob@cybernet.cse.fau.edu
RITTENHO@acc.fau.edu
Technical Details
Message-ID:
<3kqosB2w165w@cybernet.cse.fau.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!tulane!uflorida!cybernet!newsReferences:
<1992Oct14.214004.2160@njitgw.njit.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!tulane!uflorida!cybernet!news From: rob@cybernet.cse.fau.edu (Robert Rittenhouse) Newsgroups: comp.os.os2.programmer,comp.os.os2.misc Subject: Re: Example code to insert cmd files in startup folder Message-ID: <3kqosB2w165w@cybernet.cse.fau.edu> Date: 15 Oct 92 12:15:49 GMT References: <1992Oct14.214004.2160@njitgw.njit.edu> Sender: news@cybernet.cse.fau.edu Organization: Cybernet BBS, Boca Raton, Florida Lines: 40