News

Copyright © 2008-2019 Paula DiTallo

Tag Cloud



How do I view/see the PATH in a windows environment?

For those of you working with LINUX/UNIX and you've typed:

c:> echo $PATH

..in a command line expecting to see everything in your path on startup and saw only 'PATH', don't fret!

type this instead:

c:> echo %path%

 

Thursday, December 18, 2008 5:47 AM

Feedback

# re: How do I view/see the PATH in a windows environment?

On windows, the command shell's "path" command also displays the current path when it is issued with no arguments. So, ...

c:>path

will also display the current path. Easier than using the echo command.

The SET command will display all shell variables when issued with no arguments.

c:>set

will display path along with everything else.

Finnally, the set command will display the current value of the shell variable when a shell variable name is given with no value. So, ...

c:>set path

Will also display the current path. 12/18/2008 11:29 PM | joe

# re: How do I view/see the PATH in a windows environment?

c:>path
c:>set path 12/19/2008 3:43 AM | joe

# re: How do I view/see the PATH in a windows environment?

Hey, thanks for sharing that! I've been having that problem. I tried searching for the solution and it led me to this site. Thanks! 4/24/2010 9:17 PM | Blocked Drainage

# re: How do I view/see the PATH in a windows environment?

output from

echo %path%

may be hard to read as it is numerous paths strung together and delimited by ;

echo %path:;=&echo.%

outputs each entry as delimited by ; on a new line! 11/22/2010 5:44 AM | Rush

# re: How do I view/see the PATH in a windows environment?

echo %path:;=&echo.% is the most practical command if you're dealing with many subdirectories. Good thing I now work strictly with linux equipped computers, mainly servers, so echo $PATH is all I need to get by. 4/21/2011 10:09 AM | Clean Registry

# re: How do I view/see the PATH in a windows environment?

If I want to see if a certain program or file exists in the system PATH, and want to include if it isn't there already, what do I execute at the Command Prompt? Or is it possible to do it through the Windows GUI as well (if so, how?)? 10/16/2016 7:33 AM | Osman Zakir

Post A Comment
Title:
Name:
Email:
Comment:
Verification: