Help adding environment variable silently


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


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


    https://www.geekshangout.com/using-vbs-to-read-and-set-environment-variables/ - Maidens 4 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


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