How to export Environment variables to a text file

I want to have a look into my Environment variables as a text file into XP Professional. Is there any way?

1 Answer

Using the set at the command prompt will list all of your environment variables. So, you can just pipe the output of the set command to a file, like this:

set > "\path\to\file.txt"

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like