Ok, I withdraw my question. after playing around with it, i found that the trailing slash after %WINDIR% was causing the problem, the invalid directory error wasn't because it couldn't find %0\..\ but because %WINDIR%\ was returning an invalid.

just an FYI in case anyone has a similar problem.
Thanks for the assistance anyway!