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,578 of 4,675    |
|    R.Wieser to All    |
|    How to manipulate envirionment variables    |
|    13 Oct 18 16:54:40    |
      From: address@nospicedham.not.available              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.              Regards,       Rudy Wieser              --- 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