|Thanks klint..although I've got another question|
assume a batch script with the following set of commands:
SETX PATH "%PATH%;C:\TEST;C:\SETUP"
:: do some task #1
:: do some task #2
SETX PATH "%PATH%;C:\TEMP"
:: do some task #3
:: do some task #4
What Iv'e observed is that, although the paths c:\test and c:\setup are reflected by the PATH variable (control panel>system>env variables) immediately after the first setx goes through, once the batch file executes the second setx command, the previously set values (c:\test;c:\setup) are lost, and only c:\temp is seen in the path variable.
So it seems like the first setx is not being persisted in the system's path variable.
Any idea on why this happens?