Uhmmm, unless temp$ is shared (which would be kinda odd) your sub doesn't do anything to the state of the program outside the sub???
It certainly doesn't change Path$, you would need a final line Path$ = Temp$.
It certainly doesn't change Path$, you would need a final line Path$ = Temp$.
b = b + ...