Re: Environment Variables - How to

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Torgeir Bakken \(MVP\) (Torgeir.Bakken-spam_at_hydro.com)
Date: 06/25/04

  • Next message: Robert Moir: "Re: Can W2K server as BDC of SBS2003"
    Date: Fri, 25 Jun 2004 21:53:37 +0200
    
    

    Sarah Tanembaum wrote:

    > I'm wondering if there are such a command line/console version of setting
    > the environment variables.
    Hi

    You can e.g use setx.exe for this.

    For WinXP yo it is included as a utility in the support tools installation
    package (on your WinXP CD) installed by suptools.msi.

    It is also in the free part of Win2000 Resource Kit:
    http://www.microsoft.com/windows2000/techinfo/reskit/tools/existing/setx-o.asp

    I would think you can use either version on either OS version.

    When adding or removing components from the _path_ from the command line,
    I suggest using Pathman.exe (Path Manager).

    Pathman.exe can be downloaded from here:
    http://www.microsoft.com/windows2000/techinfo/reskit/tools/existing/pathman-o.asp

    It will e.g. handle repeated entries.

    Pathman.exe is also in the Windows Server 2003 Resource Kit Tools
    http://www.microsoft.com/downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en

    (The kit will install on WinXP or later)

    -- 
    torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
    Administration scripting examples and an ONLINE version of
    the 1328 page Scripting Guide:
    http://www.microsoft.com/technet/community/scriptcenter/default.mspx
    

  • Next message: Robert Moir: "Re: Can W2K server as BDC of SBS2003"

    Relevant Pages

    • Re: set user=%username%
      ... If you wish to set a variable during the logon process and make it available to other processes then you must use setx.exe from the Windows Resource Kit. ... installation package (on your WinXP CD) installed by suptools.msi. ... Windows XP Service Pack 2 Support Tools ... torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
      (microsoft.public.windows.server.general)
    • Re: Environment Variables - How to
      ... > For WinXP yo it is included as a utility in the support tools installation ... > Pathman.exe is also in the Windows Server 2003 Resource Kit Tools ... > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ... It has some hex number for certain Environment Variables. ...
      (microsoft.public.windows.server.general)
    • Re: Environment Variables - How to
      ... > For WinXP yo it is included as a utility in the support tools installation ... > Pathman.exe is also in the Windows Server 2003 Resource Kit Tools ... > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ... It has some hex number for certain Environment Variables. ...
      (microsoft.public.windows.server.setup)
    • Re: Environment Variables - How to
      ... > For WinXP yo it is included as a utility in the support tools installation ... > Pathman.exe is also in the Windows Server 2003 Resource Kit Tools ... > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ... It has some hex number for certain Environment Variables. ...
      (microsoft.public.windows.server.migration)
    • Re: Environment Variables - How to
      ... > For WinXP yo it is included as a utility in the support tools installation ... > Pathman.exe is also in the Windows Server 2003 Resource Kit Tools ... > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ... It has some hex number for certain Environment Variables. ...
      (microsoft.public.windows.server.sbs)