Alternative to printenv

Is there an alternative on Windows for the command printev which prints all the environment variables?
IUAATechAsked:
Who is Participating?
 
ozoCommented:
set
0
 
ahoffmannCommented:
> .. alternative on Windows ..
are you asking for Unix or M$ ?

on Unix it depends on your shell:
  printenv
  env
both return the environment in any shell (where env is not recommended)
in some shells (sh, bash, etc. )
  set
works also ('cause they don't distinguish between environment and ahell variables)
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.

All Courses

From novice to tech pro — start learning today.