From: Frantisek Hanzlik <franta@hanzlici.cz>
To: Robert Supansic <rsupansic@gmail.com>
Cc: DOSEMU/FreeDOS <linux-msdos@vger.kernel.org>
Subject: Re: DOS program recording it's parameters and environment?
Date: Wed, 18 Jan 2012 18:46:25 +0100 [thread overview]
Message-ID: <4F170571.1090604@hanzlici.cz> (raw)
In-Reply-To: <4F16E21B.9030804@gmail.com>
Robert Supansic napsal(a):
> Frantisek Hanzlik wrote:
>> Excuse me for slightly OT question. Know anyone DOS program, which is
>> able record infos with what parameters was started and eventually
>> other informations about calling environment (e.g. environment
>> variables, available memory etc.)?
>>
>
> I do not know if I am understanding your question correctly, but there are two DOS commands that may help:
> Both are run from the command line.
>
> MEM /C /P will list available memory by type.
> SET will list environmental variables.
Sorry for my bad english. I want program, which I arrange instead of
windows program - which is started by my DOS program but I not know
with what parameters.
For example: closed-source DOS program which i'm using start windows
program WINPROG.EXE with parameters "C:\path\file /A delay=5".
I not know these parameters, but when I take "spying" program, rename
it to "WINPROG.EXE" and replace original program with him, then DOS
program will run my "spying" program - and it can somewhere (e.g. to
file) write info how was started (me interest mainly its parameters,
but other informations, as available memory when was started,
inherited environment variables, etc. would be welcomed).
Such "spying" program should be IMO very simple (sort of any copybook
example) and perhaps already had someone this needs and realize it -
but I cannot find it ;)
Or there is second way - write this itself. But I not know intel
assembler, and use DJGPP C seems for me as "cannon onto sparrow".
Or is there other publicly available programming language for DOS,
which wil produce small code?
Thanks, Franta Hanzlik
next prev parent reply other threads:[~2012-01-18 17:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-18 5:20 DOS program recording it's parameters and environment? Frantisek Hanzlik
[not found] ` <4F16E21B.9030804@gmail.com>
2012-01-18 17:46 ` Frantisek Hanzlik [this message]
2012-01-18 17:55 ` Frank Cox
2012-01-18 18:36 ` Frantisek Hanzlik
2012-01-18 19:17 ` Scott
2012-01-27 12:01 ` Paul Crawford
2012-02-16 18:54 ` Frantisek Hanzlik
2012-02-16 21:01 ` Paul Crawford
2012-02-16 21:34 ` Frantisek Hanzlik
2012-02-17 1:57 ` Samuel Bronson
2012-02-17 22:29 ` Scott
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F170571.1090604@hanzlici.cz \
--to=franta@hanzlici.cz \
--cc=linux-msdos@vger.kernel.org \
--cc=rsupansic@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox