"Alexander Poulikakos (KI/EAB) <alexander.poulikakos@ericsson.com> wrote:
> Hi
>
> How can I programically set the HOME environment variable in VEE?
> I use VEE 6.03.
>
> Let's say I would like to set the HOME variable to this:
> C:my_veeconfig
> What would be the best way to do this?
You appear to be asking two questions:
(1) how to set vee.io path- presumably to specify a VEE IO config when you
start VEE.
best way to specify an IO config is the command line option
vee -veeio <my IO file>
(2) how to set an environment variable. That depends upon the scope of the
variable you want to set.
If you want VEE to open a shell and have HOME set within that
shell, then basic command line is fine. Use a Run Program
with command
set HOME=C:my_veeconfig
If you want this _before_ starting VEE then use the same line
in a small script
set HOME=C:my_veeconfig
vee
If you want VEE to set you system's variables then you'll want a system
call as they are stored in the registry.
from your original note I suspect that you are trying to specify
an IO file, in which case (1) above works great.
regards
Stan
--------------------------------------------------------------------------
Stan Bischof Agilent Technologies 707-577-3994 stan_bischof@agilent.com
--------------------------------------------------------------------------
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
> Hi
>
> How can I programically set the HOME environment variable in VEE?
> I use VEE 6.03.
>
> Let's say I would like to set the HOME variable to this:
> C:my_veeconfig
> What would be the best way to do this?
You appear to be asking two questions:
(1) how to set vee.io path- presumably to specify a VEE IO config when you
start VEE.
best way to specify an IO config is the command line option
vee -veeio <my IO file>
(2) how to set an environment variable. That depends upon the scope of the
variable you want to set.
If you want VEE to open a shell and have HOME set within that
shell, then basic command line is fine. Use a Run Program
with command
set HOME=C:my_veeconfig
If you want this _before_ starting VEE then use the same line
in a small script
set HOME=C:my_veeconfig
vee
If you want VEE to set you system's variables then you'll want a system
call as they are stored in the registry.
from your original note I suspect that you are trying to specify
an IO file, in which case (1) above works great.
regards
Stan
--------------------------------------------------------------------------
Stan Bischof Agilent Technologies 707-577-3994 stan_bischof@agilent.com
--------------------------------------------------------------------------
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
> variable in VEE? I use VEE 6.03.
Well if you can find some kind of interface to SetEnvironmentVariable then
good, but if not you can always find it in kernel32:
int __stdcall SetEnvironmentVariableA(char *pName, char *pValue);
-SHAWN-
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".