Re: SETing environmental variables permantly



From: "yawnmoth" <terra1024@xxxxxxxxx>


| That's not via the command line, as I had asked ;)
|
| I want it to be do'able from the command line for the purposes of
| automation. It's something I will probably be doing multiple times
| over and if I could just type in "start" or something, that'd be a lot
| easier than going through a bunch of mouse clicks and typing stuff in
| when appropriate.

You can't do it from a command line.

Anything you would do would be a daughter process and all child processes would inherit the
Environmental variables but the parent process won't. Thus you have to set the
Environmental variables in the OS such that they are loaded from the Registry in the parent
process and all daughter and child processes thus inherit the variables.

the same goes for Win9x/ME and that's why you set the variables in AUTOEXEC.BAT so all
daughter processes and child processes would inherit the Environmental variables. The
different in WinME vs. Win9x is that the OS parses AUTOEXEC.BAT for the SET commands and
then updates the Registry whiles Win9x actually interprets and sets all environmental
variables in AUTOEXEC.BAT.

--
Dave
http://www.claymania.com/removal-trojan-adware.html
http://www.ik-cs.com/got-a-virus.htm


.



Relevant Pages

  • Re: SETENV Command
    ... I did give this command ... again to set the env variables. ... >> could not set the environmental variables when i ... > The default shell in Fedora is bash, ...
    (Fedora)
  • Re: Where is $(VCInstallDir) defined ?
    ... I see many environmental variables like: ... executing "SET" command at Visual Studio command ... registry key: that's likely where the value of $comes ... Go to View | Other Windows | Command window. ...
    (microsoft.public.vc.language)
  • Re: Date Format
    ... if at the Dos prompt I issue the command date /t I get the ... I have checked the environmental variables but can find no reason ... generates a date/time output in a fixed format, ...
    (microsoft.public.windowsxp.general)
  • Re: help adding to environmental variables
    ... The Variable Name is not a personal name, but the command, as in set or path ... or temp... ... Try typing mode in the Variable Name field and com1:9600,n,1 in the ... > Environmental Variables. ...
    (microsoft.public.win2000.general)
  • Re: Env variables readable by an application
    ... environmental variables are a per-process thing. ... Child processes ... inherit the state of their parent's environment, ...
    (perl.beginners)