delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2012/05/14/18:30:16.1

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Georg <dosusb AT googlemail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: System()
Date: Fri, 11 May 2012 05:07:41 -0700 (PDT)
Organization: http://groups.google.com
Lines: 31
Message-ID: <e1b4c24c-5e9a-4825-a30b-c353b8db2dae@p1g2000vbv.googlegroups.com>
References: <92c86f75-e970-4998-94c6-56d6fbf885fe AT e15g2000vba DOT googlegroups DOT com>
<1c38ca22-52f5-470e-813f-1af6ed5f21d4 AT m16g2000yqc DOT googlegroups DOT com>
<fea067ab-ee56-4b9e-bb73-ed3365fb9d59 AT ee2g2000vbb DOT googlegroups DOT com>
<9e4eebca-6004-4c60-990a-a02d0c251ec7 AT h19g2000yqj DOT googlegroups DOT com>
<b16ff03e-0f4a-4c05-93f8-e8ce37b34ef8 AT n4g2000vbz DOT googlegroups DOT com> <4facb41e AT news DOT x-privat DOT org>
NNTP-Posting-Host: 217.91.63.120
Mime-Version: 1.0
X-Trace: posting.google.com 1336738144 2116 127.0.0.1 (11 May 2012 12:09:04 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Fri, 11 May 2012 12:09:04 +0000 (UTC)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: p1g2000vbv.googlegroups.com; posting-host=217.91.63.120; posting-account=v5xbdQoAAAAOGc9Ccc-kLZyobvPlN3Qr
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0,gzip(gfe)
Bytes: 2658
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q4EMU2kk032267
Reply-To: djgpp AT delorie DOT com

On 11 Mai, 08:39, Jason Hood <jad DOT  DOT  DOT  AT yahoo DOT com DOT au> wrote:
> On 9/05/2012 16:23, Georg wrote:
>
> > As Rugxulo suggests in this case I probably better make an assembler
> > TSR which loads the filemanager and runs the selected program after
> > the filemanager has terminated. When that has terminated the
> > filemanager is loaded again. I just would like to save this load/
> > unload since the filemanager will probably be about 1.5 MB after UPX.
>
> No need for a TSR, use batch files.  Start your manager via a batch
> file.  The manager creates another batch file to run the selected
> program, then exits.  The initial batch file detects the created
> batch file exists, and runs it, then restarts the manager; if the
> batch file doesn't exist, the manager itself has exited.  That leaves
> *all* your memory available, with no compatibility issues.
>
> --
> Jason.

Thank you Jason! I assume I could also write the line to execute into
an environment variable [setenv("doit", "notepad", 1);] and call that
from the batch file.

In a batch file:
set doit="notepad"
call %doit%
echo returned from notepad

The set command would be done in the C program with setenv().

Georg

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019