I think the %PATH% environment variable should contain the folder where your PHP.exe file is located. To check, you can just open a win console en type php.exe …
Changing the path in the bat file is not recommended. This is because, the yiic.bat is a generated file and comes with the framework (avoid changing framework files if possible, submit a ticket if something is not right).
A better approach is to update your %PATH% environment variable as outlined in the following post:
actually when I refered to the %PATH% environment variable I was really refering to it (and not the %PHP_COMMAND% batch variable … which is best to not modify).
%PATH% is defined at the System level and with the links posted by wei you should be able to modify %PATH% with no trouble.
… y no era una tonteria sino una cosa que habia que conocer