Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

How to set env. var from C program (Developers)

posted by bretjohn Homepage E-mail, Rio Rancho, NM, 15.01.2013, 17:30

> I don't want implement any dirty hack like direct rewriting memory.

Unfortunately, directly rewriting memory is the only way to do this, and it would get VERY ugly. You would probably not only want to add/modify the variable in the master environment, but also in any child environments that may exist between you and the master. Some or all of the environments may not even have enough space left to add anything new to them. Even indirectly running the SET command after you exit won't work correctly if you're not a direct descendent of the master.

 

Complete thread:

Back to the forum
Board view  Mix view
22762 Postings in 2122 Threads, 402 registered users (1 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum