set Environment variables

  • Thread starter Günther Rühmann
  • Start date
G

Günther Rühmann

Hi.

I´d like to get and set an environment variable with access 2000 vba. The
variable must also be referenced / seen by other processes than the one that
Access runs with.

Can anyone help me ?

Thanks
Guenther
 
K

Karl E. Peterson

Günther Rühmann said:
I´d like to get and set an environment variable with access 2000 vba. The
variable must also be referenced / seen by other processes than the one that
Access runs with.

You can't propogate e-vars to running processes. They each inherit a copy of the
environment block from their parent process at startup.

Sorry... Karl
 
G

Günther Rühmann

Thank you.
Best regards
Guenther

Karl E. Peterson said:
You can't propogate e-vars to running processes. They each inherit a copy of the
environment block from their parent process at startup.

Sorry... Karl
 
D

Dootje

Karl E. Peterson said:
You can't propogate e-vars to running processes. They each inherit a copy of the
environment block from their parent process at startup.

Sorry... Karl

Excuse my newbie remark, but I'm hoping to learn something from this: Aren't
at least _some_ environment variables stored in the Registry? In that case,
they could be accessed for reading and writing. Or is an environment
variable a parameter that is explicitly _not_ in the registry, but entirely
volatile?

Dootje
(e-mail address removed)
 
K

Karl E. Peterson

Dootje said:
Excuse my newbie remark, but I'm hoping to learn something from this:
Aren't at least _some_ environment variables stored in the Registry?
In that case, they could be accessed for reading and writing. Or is
an environment variable a parameter that is explicitly _not_ in the
registry, but entirely volatile?

I've never looked, but it certainly makes sense that they're stored there, and read
by Windows at startup/login. That doesn't help in the immediate case, though, as
environment blocks are inherited from parent processes as new processes are spawned.

Later... Karl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top