G
Gav
Hi all,
I have written a program which seriously depends on an environment variable.
When I set the env var for the system it caused me major problems unrelated
to what I was trying to achieve. So in order to get around this I just used
a simple script which would set the variable using the 'set' command and
then call my program. This worked and only held the env var for that script
session so once my program was finished it was gone and therefore not
affecting anything else...
I now want to convert this program to a windows service, all was going well
until I remembered this fine point. Is there a way I can programatically set
an environment variable just for the use of the service?
Regards
Gavin
I have written a program which seriously depends on an environment variable.
When I set the env var for the system it caused me major problems unrelated
to what I was trying to achieve. So in order to get around this I just used
a simple script which would set the variable using the 'set' command and
then call my program. This worked and only held the env var for that script
session so once my program was finished it was gone and therefore not
affecting anything else...
I now want to convert this program to a windows service, all was going well
until I remembered this fine point. Is there a way I can programatically set
an environment variable just for the use of the service?
Regards
Gavin