You are not logged in.
Hi
First of all, thanks for this great forum. I've been getting answers for many problems without even having to post
I just noticed that changes to the envirronment variables done from the command line with set do not persist.
They work for as long as I use the same console instance.
If I close cmd and re open it, the envirronment variables (like %path% for example) are back to what they were and any that i had added no longer exist.
I know I can make permanent changes to them from the GUI but I was wondering why I cant do it from the command line. Is it a setting that I need to adjust?
Offline
Use SETX
If the changes need to be immediate AND permanent you may need to use both SET and SETX
Offline
Thanks. I missed it somehow in the command reference. It seems to be a resource kit tool too.
I dont see why MS insists on leaving some useful commands out of normal windows installations.
Its not like they take up any serious amount of space or that they charge extra for them.
Offline