This is probably really easy and Im just overlooking some little detail...But how do you run somethin using the %comspec% variable that has spaces?

Example...

RUN "%COMSPEC% /c SUBST W: %userprofile%"

Trying to subst W: to the user's profile path...But since its Win2000 the profile path has spaces in it. If I try enclosing the %userprofile% in quotes then it ends the RUN command after RUN "%COMSPEC% /c SUBST W: " which also doesnt work too well.

Any help would be greatly appreciated...

-Shane