/build/static/layout/Breadcrumb_cap_w.png

Help adding environment variable silently

Hi 

Can someone please help me with a VB script to add the following system variable to the system;

Variable Name: JAVA_HOME
Variable value: C:\Program Files\Java\jre1.8.0_171\

Thanks heaps

Comments

  • This should have been posted within Questions rather than Blogs....

    https://blogs.technet.microsoft.com/heyscriptingguy/2005/03/18/how-can-i-create-an-environment-variable-using-a-script/

    https://www.geekshangout.com/using-vbs-to-read-and-set-environment-variables/ - Maidens 6 years ago
This post is locked

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ