use setx in conjunction with set

Set - sets a variable for the current session
Setx - sets a variable for the system

Using both should ensure that the path stays set.

http://batcheero.blogspot.com/2008/02/set-and-setx.html