Re: Set/reset DOS environment variable

new topic     » goto parent     » topic index » view thread      » older message » newer message

At 04:57 a.m. 12-02-99 -0500, you wrote:
>How do you programatically set/reset DOS environment variable?
>
>I tried the following but didn't work:
>
>system( "SET MYVAR=02/08/1999", 2 )
>i = system_exec( "COMMAND /C SET MYVAR=02/08/1999", 2 )
>
>Can anyone help me on this.
>
>Arlie

It won't work because the envoirment (the one use set on your autoexec.bat)
is different from the new shell you created.

Why you need this? I have a 7-8 pages long C source that can do what you
need, but before typing and translating it to Euphoria I must be sure it's
the only alternative you need.

Regards,
        Daniel   Berstein
        daber at pair.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu