Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.asm.x86    |    Ahh, the lost art of x86 assembly    |    4,675 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 3,580 of 4,675    |
|    Bernhard Schornak to R.Wieser    |
|    Re: How to manipulate envirionment varia    |
|    13 Oct 18 17:54:25    |
      From: schornak@nospicedham.web.de              R.Wieser wrote:                     > Hello all,       >       > Many years ago I wrote a DOS program which could read, remove and create the       > consoles environment variables. The same does not work under Windows       > anymore (neither by using INT 2Eh, nor by following the PSP chain up to the       > console program and than grabbing the environment segment from it). This       > is most likely because the programs get wrapped in an ntvdm shell, which       > gets discarded when the program ends.       >       > I've been googeling for it a while, but have not stumbled on anything       > informational in that regard.       >       > So, does anyone know of any other way to change environment variables *from       > within a DOS program* under Windows (XP) ?       >       > And its fine, and even preferred, if the changes are non-permanent and for       > the current console only. Its also fine if it only works within a       > batchfile run within such a console.                     https://docs.microsoft.com/en-us/windows/desktop/api/winbase/nf-       inbase-setenvironmentvariable                     A nice weekend to all!              Bernhard Schornak              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca