set environment variables in script .bat

Discussion in 'Scripting' started by Creezeer, Mar 6, 2007.

  1. Creezeer

    Creezeer Guest

    Hello every body,

    I'd like to make a script which sets JAVA_HOME in environment variables
    after the installation of java sdk.

    When I use the command "SET", JAVA_HOME is not in environment variables of
    the system, it is just set in envrironment variables of my script.
    How can I set JAVA_HOME in environment variables of my system (Windows 2003
    server Standard Edition) ?

    Creezeer, Mar 6, 2007
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.