Asked • 06/17/19

# How can I display the contents of an environment variable from the command prompt in Windows 7?

In Windows 7, when I start the Command prompt, is there any command to display the contents of an environment variable (such as the JAVA_HOME or PATH variables)?I have tried with echo $PATH, echo PATH and $PATH but none of these work.

## 1 Expert Answer

By:

Wade A. answered • 12/20/19

Tutor
New to Wyzant

Experienced Teacher with Specialties in Computer Science and Math

## Still looking for help? Get the right answer, fast.

Get a free answer to a quick problem.
Most questions answered within 4 hours.

#### OR

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.