Haven't tried this yet, but what about using registry functions...

i.e.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment
seems to be the location of system variables...

(For registry access look at the WshShell object...)

-Tim

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Chris Levis
Sent: Wednesday, December 04, 2002 10:48 AM
To: NT 2000 Discussions
Subject: RE: Setting Env't variable from VBS login script


Nope....

> -----Original Message-----
> From: Chris Jordan [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 04, 2002 10:44 AM
> To: NT 2000 Discussions
> Subject: RE: Setting Env't variable from VBS login script
>
>
> Can you do the old trick of using == rather than =?
>
> -----Original Message-----
> From: Chris Levis [mailto:[EMAIL PROTECTED]]
> Sent: 04 December 2002 15:39
> To: NT 2000 Discussions
> Subject: Setting Env't variable from VBS login script
>
>
> Hm.  Anyone know how I can set a system environmental
> variable using VBS
> or Jscript?   I'm working (slowly) on moving my kixtart to VBS.  It's
> simple matter to /see/ existing variables, but not to set new
> ones. I've calling a shell and sending it a "set
> THING=STUFF", but that only keeps the variable for the
> duration of the script...
>
> Any ideas or pointers?
>
> Thanks!
>
>
>
> _______________________
> There are 10 types of people in the world:  those who
> understand binary, and those who do not.
>
> ------
> You are subscribed as [EMAIL PROTECTED]
> Archives: http://www.swynk.com/sitesearch/search.asp
> To unsubscribe send a blank email to %%email.unsub%%
>
> ------
> You are subscribed as [EMAIL PROTECTED]
> Archives: http://www.swynk.com/sitesearch/search.asp
> To unsubscribe send a blank email to %%email.unsub%%
>

------
You are subscribed as [EMAIL PROTECTED]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to %%email.unsub%%


------
You are subscribed as [email protected]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to