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 RayeR Homepage, CZ, 15.01.2013, 23:51

> 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.

I wanted to set env. var only for parent shell that started running my program. But I definitely will not implement any hack... Thanks for all replies. I was little bit naive when I belived it could be easy task...

---
DOS gives me freedom to unlimited HW access.

 

Complete thread:

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