Re: DOS program recording it's parameters and environment?

Paul Crawford <[email protected]>
Newsgroups org.kernel.vger.linux-msdos
Message-ID <[email protected]>
Dear Frantisek,
> 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.)?

Attacked is a gzip'd tar file with a simple program to do this, but 
re-named .dat instead of .tgz as we use Google mail and it is too stupid 
to allow compressed executables to be emailed.

Save to a Linux box and then re-name, then the usual arcive manager or 
tar can extract the files.

It creates a file dosenv.txt in the working directory and prints out the 
calling arguments and the environment to that file. If you have a C 
compiler (I used Microsoft's C6.0 DOS compiler from around 1988) you 
could modify this program to do other things (e.g. date/time based file 
names if they fit the 8.3 limit of DOS, etc)

Regards,
Paul
-- 
Dr. Paul S. Crawford
Satellite Station
Dundee University
Small's Wynd, Dundee,
DD1 4HN, U.K.
Tel: +44 (0)1382 38 4687
Email: [email protected]
The University of Dundee is a Scottish Registered Charity, No. SC015096
dosenv.dat (application/x-ns-proxy-autoconfig, 6.2 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.