🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Example code to insert cmd files in startup folder

#2048
From: FLATSCHER Rony
Date: Fri, 09 Oct 1992 22:52
32 lines
1490 bytes
Organization: Wirtschaftsuniversitaet Wien, Vienna, Austria

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: <719058360.F00095@monly.wlink.nl.wlink.nl>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!wtrlnd!monly.wlink.nl!news-daemon

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!wtrlnd!monly.wlink.nl!news-daemon
From: FLATSCHER.Rony@f1.n100.z60.wlink.nl (FLATSCHER Rony)
Newsgroups: comp.os.os2.programmer
Subject: Example code to insert cmd files in startup folder
Message-ID: <719058360.F00095@monly.wlink.nl.wlink.nl>
Date: Fri, 09 Oct 1992 21:52:45 -0100
Sender: news-daemon@monly.wlink.nl.wlink.nl
Lines: 33