Skip to main content

Setting and unsetting an environment variable in Windows

Using the command line

Set an environment variable
1. Run > cmd
2. Type:

set <variable name>=<value>

Example:
set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_21

3. Optional: Double-check by viewing the value of the environment variable by typing:
set

Unset an environment variable
1. Run > cmd
2. Type:
set <variable> =

Example: 
set JAVA_HOME=

3. Optional: Double-check by viewing the value of the environment variable by typing:
set

Using the GUI
Set an environment variable
1. Right click My Computer > Properties > Advanced system settings
2. Click Environment Variables... button (bottom right of window)
3. Click New...
4. Enter Variable Name and Variable Value

Unset an environment variable
1. Right click My Computer > Properties > Advanced system settings
2. Click Environment Variables... button
3. Click the variable you want to unset
4. Click the Delete button

Comments

Popular posts from this blog

Monthly Inspiration - August 2018

Image found here .

The No-Fuss Setup Guide for Secure and Private AI Challenge 2019 (Windows)

Warning : This page is still under construction but I'm publishing it so that I can easily read it online. Part 1: Software that needs to be installed 1. git You can segue into doing Part 2 then come back to #2, 3 or 4, if you like :) 2. [Optional]  GitHubDesktop   - UI for git 3. [Optional] python - you can skip this if you're going to install Anaconda 4. Anaconda - needed to install PyTorch Make sure you're downloading the version that matches your OS In my case, Mac was selected by default even if my OS was Windows. Since I didn't double check, I downloaded the Mac version by mistake. So, I had to go back and download the Windows version :( pip - another way to install PyTorch if you prefer to use pip or if Anaconda is not available for some reason  Note: according to the PyTorch site, Anaconda is the recommended package manager because it will provide you all of the PyTorch dependencies in one, sandboxed install, including Python and pip. This...

Secure and Private AI Scholarship Challenge from Facebook

Got accepted! Yay! :D