How to display the contents of an environment variable from command prompt?

If you are looking at options to display the contents of an environment variable from the command line , you can use various commands to do this.

How to display the contents of an environment variable from command prompt in Windows 10 ?

Use the below command in the Windows 10 Command prompt to get the entire variable list as s single string

echo %PATH%

Use the below command to get the list of all the environment variables in multiple lines

set

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn about the Win32 Error “0x000019E5 – ERROR_COULD_NOT_RESIZE_LOG” that you get when debugging system erors in...
In this post, you’ll learn about the error “CO_E_DBERROR 0x8004E02B” that is returned when working with COM based APIs or...
In this post, you’ll learn about the Win32 Error “0x000019D0 – ERROR_LOG_BLOCK_VERSION” that you get when debugging system erors in...