🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #2028

Re: Example code to insert cmd files in startup folder

#2028
From: FLATSCHER Rony
Date: Tue, 13 Oct 1992 07:24
30 lines
1532 bytes
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. Let us say your cmd-file is called C:\DOIT.CMD

possibility 1)
  - enter "C:\DOIT.CMD" in "Path and filename"

possibility 2)
  - enter "CMD.EXE" in "Path and filename"
  - enter "/K C:\DOIT.CMD" in "Parameters"
  - if you want to prompt the user for parameters append to the program name
    in the "Parameters" an opening square bracket, a blank and a closing
    square bracket for any parameters you want to prompt for. If you want to
    supply a prompt text, replace the blank within the square brackets with
    the desired text.

Save the settings.

Move or shadow the object to the Startup-folder.

Possibility 1 executes C:\DOIT.CMD, upon termination it will terminate the
session.

Possibility 2 creates an OS/2-session, tells CMD.EXE to keep the session after
the program "C:\DOIT.CMD" is terminated, i.e. do not close the window.

---rony
Technical Details
Message-ID: <92283.195245RONY@awiwuw11.wu-wien.ac.at>
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!unipalm!uknet!mcsun!ub4b!news.cs.kuleuven.ac.be!blekul11!frmop11!awiwuw11!rony
References: <921005134638@minimillian.ftp.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!unipalm!uknet!mcsun!ub4b!news.cs.kuleuven.ac.be!blekul11!frmop11!awiwuw11!rony
From: RONY@awiwuw11.wu-wien.ac.at (FLATSCHER Rony)
Newsgroups: comp.os.os2.programmer,comp.os.os2.misc
Subject: Re: Example code to insert cmd files in startup folder
Message-ID: <92283.195245RONY@awiwuw11.wu-wien.ac.at>
Date: 13 Oct 92 07:24:46 GMT
References: <921005134638@minimillian.ftp.com>
Organization: Wirtschaftsuniversitaet Wien, Vienna, Austria
Lines: 30