I have a precise purpose in mind.
..
Thanks ChrisR for the tip of SetEnv/CodeProject: it turned out that it always does what I want without botching.
Sure
Keep in mind, adding lots of path to env variable slows down windows, that is the reason putting 3rd party tools (mostly cmd tools) ms not offers to system32 mostly prefered. printip.exe 14 KB
a reminder, printip gets information from an internet address, if (when) internet address down, printip will not work
Great! Why doesn't Microsoft offer an equally good tool?
ms (even they add a lot in time) knows they can forget lots of tools, .... that is the reason they made wsh (Windows Script Host) and put all versions of windows
Well, wsh is not very good for various reasons.........
I advice you to learn AutoIT
http://www.autoitscript.com/site/autoit/ , The Best Windows Script engine ever made , which you can create/put lots of tools, all yourself the way you like.
ps: Gena and Win7PESE made with the Great Help of AutoIT