🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.misc
Article #3618

DOS Environment Variable Question

#3618
From: Frank Merrow
Date: Mon, 01 Oct 1990 19:19
14 lines
884 bytes
Hi All,

I wanted to create a MS-DOS environment variable at boot time off the form
set TODAY=yymmdd so that other *.BAT files can create backup files and
other such things.  I looked threw the MS-C manual and found putevn() and
getenv(), but they seem to effect the PROGRAM's copy of the environment, while
I want to effect "THE" environment.

Anyone got a good/easy way to do this?

Frank

P.S. If not "easy" then there must be a pointer to the DOS enviroment someplace,
where is it and how does the structure look?
Technical Details
Message-ID: <1990Oct1.191910.560@odetics.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!odetics!frank

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!odetics!frank
From: frank@odetics.com (Frank Merrow)
Newsgroups: comp.sys.ibm.pc.misc
Subject: DOS Environment Variable Question
Message-ID: <1990Oct1.191910.560@odetics.com>
Date: 1 Oct 90 19:19:10 GMT
Reply-To: frank@odetics.UUCP (Frank Merrow)
Distribution: na
Organization: Odetics, Inc., Anaheim, CA
Lines: 14