DEV Community

AquaCat
AquaCat

Posted on

2

【Windows】Difference between User Environment Variables and System Environment Variables

When you install new language into your PC (e.g. PHP) , you need to register the path to its directory to set an environment variable for it.

If you set this variable, you will be able to use the command (such as "php") in your command prompt to order to your program. Otherwise, you will get the message that says "XXX is not recognized as an internal or external command."

There are 2 types of environment variables.

1.User Environment Variables

This is user-specific. It works only for the account that set this variable.

2.System Environment Variables

This is available for all users.

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay