A
A
astatium1352017-09-11 16:21:22
cmd/bat
astatium135, 2017-09-11 16:21:22

How to add environment variables on behalf of the current user?

You need to add environment variables to the system. The set/setx commands on behalf of the user are perfectly executed, issue "Success. The specified value is saved.", and ... they don't do shit. Absolutely. Running as admin DOES introduce variables, but they are visible as admin. And it is necessary that they be visible on behalf of the user who double-clicked on the batch file. Suggest a way to solve the problem

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
astatium135, 2017-09-12
@astatium135

Issue resolved. It was necessary to execute the code on behalf of the administrator and restart the computer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question