Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I set a new path like so:

 setx -m path "%%SOME_HOME%%;%PATH%"

The %PATH% part will expand any existing % into the actual path.

I want it to set:




Any ideas?

share|improve this question
change %%GIT_HOME%% to %GIT_HOME% in batch file command setx -m ... – STTR Jul 24 '13 at 5:00
Is this question about replacing absolute path from actual %PATH% to variable (like %%WHATEVER%%) automatically? Otherwise you have already answered yourself with %%SOME_HOME%%. – Vlastimil Ovčáčík Jul 24 '13 at 9:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.