Re: Set/reset DOS environment variable
At 07:47 AM 2/12/99 -0400, you wrote:
>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
>
Hi Daniel,
I want to use this for IPC (inter-process communication) so that a program
can tell if an instance of itself is already running. Sort of TSR under
windows 95. I thought that setting DOS env. var. was the simplest way to do
it.
Regards,
Arlie Codina
|
Not Categorized, Please Help
|
|