Have you tried using %COMSPEC% with anything else?

Try just a simple:
Code:
Shell %COMSPEC%+' /C echo "%%COMSPEC%%" is a valid path!'