• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 509
  • Last Modified:

View environment variables (path) via command prompt

Hi guys ,


just wondering if there is any way of viewing a users curretnt "path" environment variables via a command prompt


can you help?


Thanks
0
frsupport
Asked:
frsupport
  • 2
  • 2
  • 2
  • +3
1 Solution
 
grishavCommented:
"set" command gives you the whole list
0
 
knightEknightCommented:
just use the PATH command:

C:\> PATH
[ENTER]
0
 
StefanKampCommented:
echo %path%
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
grishavCommented:
'path' command gives you only the path
0
 
knightEknightCommented:
yes, that's the idea.  :)

SET works if you want the whole environment.  Also, if you want to see only the variables that contain "PATH" in the name, then do this:

C:\>  SET | find/i "PATH"
0
 
Steve KnightIT ConsultancyCommented:
or indeed to yet another method the same

set p

shiows all starting with p
0
 
Steve KnightIT ConsultancyCommented:
or indeed to yet another method the same

set p

shiows all starting with p
0
 
subhashchyCommented:
. %path% is the inbuilt environment variable.
0
 
LeeTutorretiredCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

  • 2
  • 2
  • 2
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now