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

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.