🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #4603

Setting Environment Variables (MS Quick C)

#4603
From: John Valenti
Date: Tue, 05 Feb 1991 23:05
18 lines
1195 bytes
I'm told that a program is given a copy of the environment variables, so any
changes/additions made are lost when the program ends. There must be some
way around this limitation?

Specifically, I want a batch file that runs a Quick C program, then calls another batch
file based on an environment variable:
       :top
        menu (quick c program)
        if %prgm%=exit goto done
        call %prgm%
        goto top
        :done
(The above batch file may not be syntactically correct, but you get the idea?)

Any leads on permanently setting env. variables in the DOS shell that 
called the Quick C program are appreciated.
Thanks, John Valenti
Valenti@msu.edu
Technical Details
Message-ID: <1991Feb5.230510.4867@msuinfo.cl.msu.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!telly!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!midway!msuinfo!news

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!telly!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!midway!msuinfo!news
From: Valenti@MSU (John Valenti)
Newsgroups: comp.os.msdos.programmer
Subject: Setting Environment Variables (MS Quick C)
Message-ID: <1991Feb5.230510.4867@msuinfo.cl.msu.edu>
Date: 5 Feb 91 23:05:10 GMT
Sender: news@msuinfo.cl.msu.edu
Organization: Michigan State University
Lines: 18