Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2002
    Location
    Alexandria, MN USA
    Posts
    5

    Environmental Variables in NT or 2000

    Is there a way I can edit the environment variable in windows NT or 2000? I got it figured out for Win 95/98/ME PC's (Autoexec.bat), but I'm having trouble with the Nt.

    Thanks,


    ------------------

  2. #2
    Join Date
    Jul 2001
    Location
    Indigo Rose Software
    Posts
    1,834

    Re: Environmental Variables in NT or 2000

    System Variables (environment variables available to all users of the
    system) are set in:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Session
    Manager\Environment

    You just create a key with the name of the variable and the value is the
    variable's value. NOTE: When setting variables in the Registry like this, the
    system MUST be restarted for them to take effect.

    So, for example, if I make a variable called "SUF60PROGRAM" and assign the
    value of "C:\Program Files\Setup Factory 6.0 Demo\SUF60Design.exe" to it
    and the restart the computer, I can go to Start > Run and type in
    %SUF60PROGRAM% and Setup Factory 6.0 will start.

    User variables (environment variables available to only the current user)
    are set in:

    HKEY_CURRENT_USER\Environment

    registry key. They can be set the same way as above.


    Here are some links for further reading:
    http://www.winntmag.com/Articles/Ind...ArticleID=5379

    and
    http://support.microsoft.com/support.../q100/8/43.asp

    ------------------
    Sincerely,

    Darryl Hnatiuk
    Indigo Rose Corporation
    Darryl
    Indigo Rose Corporation

    Product Guides: AMS80 | SUF9 | TU30 | VP30 |MSIFACT |DeltaMAX

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts